From 8a0c173610278163721bf070eb019d1da656bc81 Mon Sep 17 00:00:00 2001 From: ryt51V Date: Wed, 2 Mar 2016 21:18:32 +0000 Subject: [PATCH] Fixed more missing "$0" in sudo --- automated install/basic-install.sh | 4 ++-- automated install/uninstall.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e740349a..1d09acc3 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -30,8 +30,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/automated install/uninstall.sh b/automated install/uninstall.sh index e1a297bf..adbd8cd5 100644 --- a/automated install/uninstall.sh +++ b/automated install/uninstall.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."