Fixed more missing "$0" in sudo

This commit is contained in:
ryt51V 2016-03-02 21:18:32 +00:00
parent 8d1c1e2b06
commit 8a0c173610
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@ else
# Check if it is actually installed # Check if it is actually installed
# If it isn't, exit because the install cannot complete # If it isn't, exit because the install cannot complete
if [[ $(dpkg-query -s sudo) ]];then if [[ $(dpkg-query -s sudo) ]];then
echo "::: Running sudo $@" echo "::: Running sudo $0 $@"
sudo "$@" sudo "$0" "$@"
exit $? exit $?
else else
echo "::: Please install sudo or run this script as root." echo "::: Please install sudo or run this script as root."

View file

@ -23,8 +23,8 @@ else
# Check if it is actually installed # Check if it is actually installed
# If it isn't, exit because the install cannot complete # If it isn't, exit because the install cannot complete
if [[ $(dpkg-query -s sudo) ]];then if [[ $(dpkg-query -s sudo) ]];then
echo "::: Running sudo $@" echo "::: Running sudo $0 $@"
sudo "$@" sudo "$0" "$@"
exit $? exit $?
else else
echo "::: Please install sudo or run this script as root." echo "::: Please install sudo or run this script as root."