Added check to verify borg base directory exists
This commit is contained in:
parent
396638b4e2
commit
ad18770f05
@ -426,6 +426,15 @@ if [ -z "${borgConfig[0]}" ]; then
|
|||||||
cleanup
|
cleanup
|
||||||
quit 210
|
quit 210
|
||||||
else
|
else
|
||||||
|
# verify the path actually exists
|
||||||
|
checkExist fd "${borgConfig[0]}"
|
||||||
|
checkResult="$?"
|
||||||
|
if [ "$checkResult" = "1" ]; then
|
||||||
|
# borg base directory specified could not be found
|
||||||
|
cleanup
|
||||||
|
quit 210
|
||||||
|
fi
|
||||||
|
echo -e "${op}${stamp} Borg base dir... OK${normal}" >> "$logFile"
|
||||||
export BORG_BASE_DIR="${borgConfig[0]}"
|
export BORG_BASE_DIR="${borgConfig[0]}"
|
||||||
fi
|
fi
|
||||||
# check: path to SSH keyfile
|
# check: path to SSH keyfile
|
||||||
|
Loading…
Reference in New Issue
Block a user