Fix for close with empty parameter

This commit is contained in:
Clemens Schwaighofer
2022-03-31 09:18:23 +09:00
parent 86b0fa122a
commit c1f6bb443a

View File

@@ -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 ];