From 3f0b8a0d3031602707e3116f3c803e3fcdbde965 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 3 Oct 2018 13:37:15 -0600 Subject: [PATCH] Reactivated ncRoot parameter checking --- backup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index bbec974..69720ca 100755 --- a/backup.sh +++ b/backup.sh @@ -217,10 +217,10 @@ done if [ $(id -u) -ne 0 ]; then echo -e "${err}This script MUST be run as ROOT. Exiting.${normal}" exit 2 -#elif [ -z "$ncRoot" ]; then -# echo -e "\n${err}The NextCloud webroot must be specified (-n parameter)" \ -# "${normal}\n" -# exit 1 +elif [ -z "$ncRoot" ]; then + echo -e "\n${err}The NextCloud webroot must be specified (-n parameter)" \ + "${normal}\n" + exit 1 fi