From 0b480c2d3f78f5d04c60fc0bcced20abddb75eae Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 6 Apr 2016 09:36:41 +0100 Subject: [PATCH] remove redundant else, add ! to if logic. --- pihole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pihole b/pihole index 29e85309..5ff26246 100755 --- a/pihole +++ b/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.