Bug fix for unset var in close call
This commit is contained in:
1 parent
ab58ab3ad0
commit
500ab01790
1 file changed
+1
-1
@@ -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 [ $1 == 1 ]; then
|
||||
if [ $# -ge 1 ] && [ $1 = 1 ]; then
|
||||
echo "=== [ERROR: $(date +'%F %T')] ==[${MODULE}]====================================>";
|
||||
else
|
||||
DURATION=$[ $(date +'%s')-$START ];
|
||||
|
||||
Reference in new issue
Block a user