From 979ba9796a1eeaff0f4a71d011335c3a5427e801 Mon Sep 17 00:00:00 2001 From: benjamyn Date: Wed, 20 Feb 2019 23:17:21 +1100 Subject: [PATCH] Script now prompts for root --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 72b9237..0d185a9 100644 --- a/install.sh +++ b/install.sh @@ -1,8 +1,8 @@ #!/bin/bash -#if [[ $EUID -ne 0 ]]; then -# echo "This script must be run as root" -# exit 1 -#fi +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi CURRENTDIR=`pwd` ENVDIR=$CURRENTDIR"/env" WORKINGDIR=$CURRENTDIR"/paste"