From 8dd1067e1b1738b85ee3b819e894e3018847ee8d Mon Sep 17 00:00:00 2001 From: Marco Cetica Date: Mon, 4 Nov 2024 08:59:32 +0100 Subject: [PATCH] Fisxed bug related to verbose mode --- backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index ae7c3ad..118b899 100755 --- a/backup.sh +++ b/backup.sh @@ -206,7 +206,9 @@ extract_backup() { printf "[FATAL] - integrity error for '%s'.\n" "$file" exit 1 fi - printf "[OK] - integrity check for '%s' passed.\n" "$file" + if [ "$BACKUP_SH_VERBOSE" -eq 1 ]; then + printf "[OK] - integrity check for '%s' passed.\n" "$file" + fi done shopt -u globstar dotglob fi