]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix history printing
authorBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jun 2026 16:00:21 +0000 (18:00 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 27 Jun 2026 16:00:21 +0000 (18:00 +0200)
src/backup

index 57772112547b1a0815140de53f4b3a00ed58c5a6..cc998947264fd10dba43a6963c357d681b619a17 100755 (executable)
@@ -294,10 +294,10 @@ check_backup_date()
                        is_backup_old "$typ" "$(cat $history_path/$typ)" \
                                || color=$LIGHTRED
                        printf "${color}last backup %s " "$typ"
-                       printf "am %s%s\n" "$(cat $history_path/$typ)" "$RESET"
+                       printf "am %s$RESET\n" "$(cat $history_path/$typ)"
                else
                        printf "${LIGHTRED}no backup %s " $typ
-                       printf "exists%s}\n" "$RESET"
+                       printf "%s$RESET\n" "exists"
                fi
        done
        echo