From 96307636e5f36a0fa77bb767a899dee1e97a00f8 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 3 Oct 2013 22:13:44 +0200 Subject: plugins-hook: Fix non-issue Fix a bug that will only be triggered if the output of whoami(1) is empty. 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' set -u export PATH='/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' -test $(whoami) = "$run_as" || exec sudo -u "$run_as" "$0" "$@" +test "$(whoami)" = "$run_as" || exec sudo -u "$run_as" "$0" "$@" hook_name=${0##*/} hook_directory="/home/plugins/libexec/$hook_name.d" -- cgit v0.10-9-g596f