mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 15:13:42 +00:00
Fixed more missing "$0" in sudo
This commit is contained in:
parent
8d1c1e2b06
commit
8a0c173610
2 changed files with 4 additions and 4 deletions
|
@ -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."
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue