From 4eb9abccf8cc7be3aa2bb57960e28818db68a899 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 24 May 2019 21:18:54 -0600 Subject: [PATCH] fix premature exit on borg installation check --- backup_new.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup_new.sh b/backup_new.sh index cf009cd..2bf2932 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -253,10 +253,10 @@ if [ ! -f "$configDetails" ]; then badParam dne "(--details default)" "$configDetails" fi # is borg installed? -command -v borg > /dev/null || \ +if ! command -v borg > /dev/null; then printf "\n${err}ERROR: BORG is not installed on this system!${norm}\n\n" -exit 3 - + exit 3 +fi ### start logging