fix premature exit on borg installation check

This commit is contained in:
Asif Bacchus 2019-05-24 21:18:54 -06:00
parent 769cb332a9
commit 4eb9abccf8

View File

@ -253,10 +253,10 @@ if [ ! -f "$configDetails" ]; then
badParam dne "(--details default)" "$configDetails" badParam dne "(--details default)" "$configDetails"
fi fi
# is borg installed? # 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" printf "\n${err}ERROR: BORG is not installed on this system!${norm}\n\n"
exit 3 exit 3
fi
### start logging ### start logging