summaryrefslogtreecommitdiff
diff options
authorAlex Tu <alex.tu@canonical.com>2020-04-13 17:26:39 +0800
committerAlex Tu <alex.tu@canonical.com>2020-04-13 17:26:39 +0800
commit511ad59ae0855e8be8c39175ebd9211d82724cc6 (patch)
tree16a427b10f22790a75d881cbe6a975968d117449
parentc261799159d320cc96fbfa124cd5fabcd4a18ba4 (diff)
it should be a typo from 45b4ffa9 which break functionality
-rwxr-xr-xbin/pm_test2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pm_test b/bin/pm_test
index 3dcdf289..066f7576 100755
--- a/bin/pm_test
+++ b/bin/pm_test
@@ -39,7 +39,7 @@ def main():
username = os.getenv('NORMAL_USER')
if not username:
uid = os.getenv('SUDO_UID') or os.getenv('PKEXEC_UID')
- if not uid:q
+ if not uid:
sys.stderr.write('Unable to determine invoking user\n')
sys.exit(1)
username = pwd.getpwuid(int(uid)).pw_name