Script now prompts for root

This commit is contained in:
Benjamyn Love 2019-02-20 23:17:21 +11:00
parent 54a456c0cf
commit 979ba9796a

View File

@ -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"