aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSpacelord <Spacelord09@users.noreply.github.com>2019-12-07 15:22:58 +0100
committerSpacelord <Spacelord09@users.noreply.github.com>2019-12-07 15:22:58 +0100
commit2fb3801be65cd98a6069f503897da93033b5049e (patch)
treea39a08f81e8da8852445cdd616d770486f494954
parent758c0000d1bc9f470d734bec78b8d8b85356acef (diff)
downloadmidimonster-2fb3801be65cd98a6069f503897da93033b5049e.tar.gz
midimonster-2fb3801be65cd98a6069f503897da93033b5049e.tar.bz2
midimonster-2fb3801be65cd98a6069f503897da93033b5049e.zip
Convert user check to 1line
-rwxr-xr-xinstaller.sh5
1 files changed, 1 insertions, 4 deletions
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