diff --git a/advanced/Scripts/blacklist.sh b/advanced/Scripts/blacklist.sh index 7f3684d0..86d18c61 100644 --- a/advanced/Scripts/blacklist.sh +++ b/advanced/Scripts/blacklist.sh @@ -37,8 +37,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." diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 4a4da53f..5c5c6755 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.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." diff --git a/advanced/Scripts/piholeLogFlush.sh b/advanced/Scripts/piholeLogFlush.sh index fa1d4b90..7e52a467 100755 --- a/advanced/Scripts/piholeLogFlush.sh +++ b/advanced/Scripts/piholeLogFlush.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." diff --git a/advanced/Scripts/piholeReloadServices.sh b/advanced/Scripts/piholeReloadServices.sh index cfb14a76..01e5d372 100644 --- a/advanced/Scripts/piholeReloadServices.sh +++ b/advanced/Scripts/piholeReloadServices.sh @@ -23,8 +23,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 $@" - sudo "$@" + echo "::: Running sudo $0 $@" + sudo "$0" "$@" exit $? else echo "::: Please install sudo or run this script as root." diff --git a/advanced/Scripts/piholeSetPermissions.sh b/advanced/Scripts/piholeSetPermissions.sh index 66ea8693..ff1ec36a 100644 --- a/advanced/Scripts/piholeSetPermissions.sh +++ b/advanced/Scripts/piholeSetPermissions.sh @@ -23,8 +23,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 $@" - sudo "$@" + echo "::: Running sudo $0 $@" + sudo "$0" "$@" exit $? else echo "::: Please install sudo or run this script as root." diff --git a/advanced/Scripts/setupLCD.sh b/advanced/Scripts/setupLCD.sh index 3d674869..2a5888ad 100644 --- a/advanced/Scripts/setupLCD.sh +++ b/advanced/Scripts/setupLCD.sh @@ -23,8 +23,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 $@" - sudo "$@" + echo "::: Running sudo $0 $@" + sudo "$0" "$@" exit $? else echo "::: Please install sudo or run this script as root." diff --git a/advanced/Scripts/whitelist.sh b/advanced/Scripts/whitelist.sh index 5958d5e6..2d344234 100755 --- a/advanced/Scripts/whitelist.sh +++ b/advanced/Scripts/whitelist.sh @@ -37,8 +37,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."