From 2fb3801be65cd98a6069f503897da93033b5049e Mon Sep 17 00:00:00 2001 From: Spacelord Date: Sat, 7 Dec 2019 15:22:58 +0100 Subject: Convert user check to 1line --- installer.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'installer.sh') diff --git a/installer.sh b/installer.sh index eab9f50..1a6301c 100755 --- a/installer.sh +++ b/installer.sh @@ -97,10 +97,7 @@ CLEAN () { trap ERROR SIGINT SIGTERM SIGKILL clear -if [ $user != "root" ]; then # Check if $user = root! - echo "Installer must be run as root" - ERROR -fi +if [ $user != "root" ]; then echo "Installer must be run as root"; ERROR; fi # Check if $user = root! if [ $(wget -q --spider http://github.com) $? -eq 0 ]; then "INSTALL-DEPS"; else echo You need connection to the internet; ERROR ; fi -- cgit v1.2.3