From 3e45759c2962ffc4889ac017d76d392d27601f9c Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sat, 25 Oct 2025 21:00:32 +0100 Subject: [PATCH] Colorize outdated script summary --- scripts/dev/outdated | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/dev/outdated b/scripts/dev/outdated index 6eefc434..f70e623b 100755 --- a/scripts/dev/outdated +++ b/scripts/dev/outdated @@ -42,17 +42,19 @@ echo "=============================================" printf "%-30s | %s\n" "Dependency" "Status" echo "---------------------------------------------" +red=$(tput setaf 1) +green=$(tput setaf 2) +normal=$(tput sgr0) + for i in "${!command_names[@]}"; do name="${command_names[$i]}" result="${command_results[$i]}" if [ "$result" -eq 0 ]; then - status="✓ Up to date" + printf "%-30s | %s\n" "$name" "${green}✓ Up to date${normal}" else - status="✗ Run update" + printf "%-30s | %s\n" "$name" "${red}✗ Run update${normal}" fi - - printf "%-30s | %s\n" "$name" "$status" done echo "============================================="