From 923b4d6d80952728cc8dcd06a272c28db888d0b2 Mon Sep 17 00:00:00 2001 From: ryt51V Date: Wed, 2 Mar 2016 21:23:42 +0000 Subject: [PATCH] Fixed FINAL forgotten $0 in sudo! --- gravity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity.sh b/gravity.sh index 08e94f8b..f2204c62 100755 --- a/gravity.sh +++ b/gravity.sh @@ -24,8 +24,8 @@ else # Check if it is actually installed # If it isn't, exit because the install cannot complete if [[ $(dpkg-query -s sudo) ]];then - echo "::: Running sudo -u pihole $@" - sudo -u pihole "$@" + echo "::: Running sudo -u pihole $0 $@" + sudo -u pihole "$0" "$@" exit $? else echo "::: Please install sudo."