mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
remove redundant else, add ! to if logic.
This commit is contained in:
parent
391dea445a
commit
0b480c2d3f
1 changed files with 2 additions and 2 deletions
4
pihole
4
pihole
|
@ -11,9 +11,9 @@
|
|||
# (at your option) any later version.
|
||||
|
||||
# Must be root to use this tool
|
||||
if [[ $EUID -eq 0 ]];then
|
||||
if [[ ! $EUID -eq 0 ]];then
|
||||
#echo "::: You are root."
|
||||
else
|
||||
#else
|
||||
#echo "::: Sudo will be used for this tool."
|
||||
# Check if it is actually installed
|
||||
# If it isn't, exit because the pihole cannot be invoked without privileges.
|
||||
|
|
Loading…
Reference in a new issue