summaryrefslogtreecommitdiff
path: root/bin
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
commit5bdb4e84187e541dec858b858652ecb5b14f7bbf (patch)
tree52420ac64c80475a65d33e26afd629ca99e73ad3 /bin
parentb9e4bde5a30bd7411024a7d13c7c8a9a0b5f56dd (diff)
it should be a typo from 6f896de9 which break functionality
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pm_test b/bin/pm_test
index 3dcdf28..066f757 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