From 3fd8da1e268f0fdad05d84888ee16c7123c11e01 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 18 Jun 2019 21:38:44 -0600 Subject: [PATCH] fix borgSSHKey test, check for file not dir --- seafbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seafbackup.sh b/seafbackup.sh index 0d08e07..95decb3 100755 --- a/seafbackup.sh +++ b/seafbackup.sh @@ -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" \