From 846789efe7d222c825d215a8a79ceb8d821e9cfb Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 26 Mar 2020 05:43:10 -0600 Subject: [PATCH] restore root-check --- borghelper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/borghelper.sh b/borghelper.sh index 4ccb10f..9e54172 100755 --- a/borghelper.sh +++ b/borghelper.sh @@ -49,9 +49,9 @@ fi ### pre-requisites # is user root? -#if [ ! "$( id -u )" -eq 0 ]; then -# consoleError 1 'You must be root to run this script.' -#fi +if [ ! "$( id -u )" -eq 0 ]; then + consoleError 1 'You must be root to run this script.' +fi # has a parameter been passed to this script? if [ -z "$1" ]; then