fix borgSSHKey test, check for file not dir

This commit is contained in:
Asif Bacchus 2019-06-18 21:38:44 -06:00
parent 249209df99
commit 3fd8da1e26
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ export BORG_BASE_DIR="${borgBaseDir%/}"
## check path to SSH keyfile
if [ -z "${borgSSHKey}" ]; then
badDetails empty 'borgSSHKey'
elif [ ! -d "${borgSSHKey}" ]; then
elif [ ! -f "${borgSSHKey}" ]; then
badDetails dne 'borgSSHKey'
fi
printf "${magenta}details:borgSSHKey ${norm}-- ${ok}[OK]${norm}\n" \