From c1f6bb443a55c93eb143022a5a3c79a827a9fc22 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 31 Mar 2022 09:18:23 +0900 Subject: [PATCH] Fix for close with empty parameter --- borg.backup.functions.close.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg.backup.functions.close.sh b/borg.backup.functions.close.sh index 3f3d0c1..88e07c7 100644 --- a/borg.backup.functions.close.sh +++ b/borg.backup.functions.close.sh @@ -3,7 +3,7 @@ # unset borg settings unset BORG_BASE_DIR BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK BORG_RELOCATED_REPO_ACCESS_IS_OK # error abort without duration and error notice -if [ $# -ge 1 ] && [ $1 -eq 1 ]; then +if [ $# -ge 1 ] && [ "$1" -eq 1 ]; then echo "=== [ERROR: $(date +'%F %T')] ==[${MODULE}]====================================>"; else DURATION=$[ $(date +'%s')-$START ];