mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 15:13:42 +00:00
Fixed FINAL forgotten $0 in sudo!
This commit is contained in:
parent
8a0c173610
commit
923b4d6d80
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,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 -u pihole $@"
|
||||
sudo -u pihole "$@"
|
||||
echo "::: Running sudo -u pihole $0 $@"
|
||||
sudo -u pihole "$0" "$@"
|
||||
exit $?
|
||||
else
|
||||
echo "::: Please install sudo."
|
||||
|
|
Loading…
Reference in a new issue