mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 23:23: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
|
# 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."
|
||||||
|
|
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue