From eac950453c8ff160b595331abd66fcfbd7bc27c4 Mon Sep 17 00:00:00 2001 From: ryt51V Date: Sat, 5 Mar 2016 11:18:10 +0000 Subject: [PATCH] Removed redundant sudo. --- advanced/Scripts/setupLCD.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/advanced/Scripts/setupLCD.sh b/advanced/Scripts/setupLCD.sh index 65a04dab..91fcfa49 100644 --- a/advanced/Scripts/setupLCD.sh +++ b/advanced/Scripts/setupLCD.sh @@ -15,21 +15,6 @@ source /usr/local/include/pihole/piholeInclude rerun_root "$0" "$@" ############ FUNCTIONS ########### -# Run this script as root or under sudo -echo ":::" -if [[ $EUID -eq 0 ]];then - echo "::: You are root." -else - echo "::: sudo will be used." - # Check if it is actually installed - # If it isn't, exit because the install cannot complete - if [[ $(dpkg-query -s sudo) ]];then - export SUDO="sudo" - else - echo "::: Please install sudo or run this script as root." - exit 1 - fi -fi # Borrowed from adafruit-pitft-helper < borrowed from raspi-config # https://github.com/adafruit/Adafruit-PiTFT-Helper/blob/master/adafruit-pitft-helper#L324-L334