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."