]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix color stat
authorBastian Dehn <hhaalo@arcor.de>
Tue, 11 Aug 2026 18:28:13 +0000 (20:28 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 11 Aug 2026 18:28:13 +0000 (20:28 +0200)
src/backup

index bbb9e818e049b0e0fae272440f0b38d9d6cbe8ec..b4ce197620c08edda5b04432221af8e9eca3ce68 100755 (executable)
@@ -420,7 +420,7 @@ check_backup_date()
                stat=$(awk "NR==$line {print; exit}" "$stat_file")
 
                is_backup_old "$type" "$stat" || status="old"
-               [ "$status" != "ok" ] || color="$LIGHTRED"
+               [ "$status" == "ok" ] || color="$LIGHTRED"
 
                printf "${color}%-5s %-10s %s${RESET}\n" "$type" "$stat" "$status"
                ((line++))