diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 20:13:44 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-03 20:13:44 (GMT) |
commit | 96307636e5f36a0fa77bb767a899dee1e97a00f8 (patch) | |
tree | 13849a561477767658bbca223712849fedb8cdb9 | |
parent | d912a8eee92e67c489f5882a8ce0169e79f3f71a (diff) | |
download | site-96307636e5f36a0fa77bb767a899dee1e97a00f8.tar.gz |
plugins-hook: Fix non-issue
Fix a bug that will only be triggered if the output of whoami(1) is
empty.
-rwxr-xr-x | libexec/plugins-hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/plugins-hook b/libexec/plugins-hook index bc2eddc..63299d0 100755 --- a/libexec/plugins-hook +++ b/libexec/plugins-hook | |||
@@ -16,7 +16,7 @@ run_as='plugins' | |||
16 | 16 | ||
17 | set -u | 17 | set -u |
18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' | 18 | export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' |
19 | test $(whoami) = "$run_as" || exec sudo -u "$run_as" "$0" "$@" | 19 | test "$(whoami)" = "$run_as" || exec sudo -u "$run_as" "$0" "$@" |
20 | 20 | ||
21 | hook_name=${0##*/} | 21 | hook_name=${0##*/} |
22 | hook_directory="/home/plugins/libexec/$hook_name.d" | 22 | hook_directory="/home/plugins/libexec/$hook_name.d" |