corrections of errors

perseverance
Lewis7Lewis 2026-11-12 01:47:12 +01:00
parent 0a5037c8b6
commit 75ee27470f
1 changed files with 2 additions and 1 deletions

View File

@ -64,9 +64,10 @@ let
;; ;;
list) list)
$YQ '.announcements | to_entries | .[] | "[" + (.key | tostring) + "] (" + (if .value.archived then "archivée" else "ACTIVE" end) + ") [" + .value.type + "] " + .value.message' "$FILE" $YQ '.announcements | to_entries | .[] | "[" + (.key | tostring) + "] " + ((select(.value.archived == true) | "(archivée)") // "(ACTIVE)") + " [" + .value.type + "] " + .value.message' "$FILE"
;; ;;
archive) archive)
INDEX="''${2:-}" INDEX="''${2:-}"
if [ -z "$INDEX" ]; then if [ -z "$INDEX" ]; then