summaryrefslogtreecommitdiffstats
path: root/libexec/plugins-hook
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/plugins-hook')
-rwxr-xr-xlibexec/plugins-hook2
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
17set -u 17set -u
18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' 18export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
19test $(whoami) = "$run_as" || exec sudo -u "$run_as" "$0" "$@" 19test "$(whoami)" = "$run_as" || exec sudo -u "$run_as" "$0" "$@"
20 20
21hook_name=${0##*/} 21hook_name=${0##*/}
22hook_directory="/home/plugins/libexec/$hook_name.d" 22hook_directory="/home/plugins/libexec/$hook_name.d"