diff options
-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" |