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