diff options
| author | 2026-04-21 01:23:27 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:23:27 +0100 | |
| commit | b76c61bc0eb1930d576c04226d9b61cbb23b0a60 (patch) | |
| tree | c66ea020a904547ff9be40dac97ab7814202fe5d | |
| parent | a52a8022b52c5c0b9f143bb7aab1d2f4632d144e (diff) | |
| download | dotfiles-b76c61bc0eb1930d576c04226d9b61cbb23b0a60.tar.gz dotfiles-b76c61bc0eb1930d576c04226d9b61cbb23b0a60.tar.bz2 dotfiles-b76c61bc0eb1930d576c04226d9b61cbb23b0a60.zip | |
fix: align 'just groups' signalling with ≥50% threshold
- ✓ fully installed (100%)
- ~ adopted but partial (≥50%, <100%)
- ✗ not adopted (<50%, includes 0%)
| -rw-r--r-- | justfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -126,10 +126,10 @@ groups group="": done if [ "$installed" -eq "$total" ]; then printf ' \033[32m✓\033[0m %-10s %d/%d\n' "$group" "$installed" "$total" - elif [ "$installed" -eq 0 ]; then - printf ' \033[31m✗\033[0m %-10s %d/%d\n' "$group" "$installed" "$total" - else + elif [ $((installed * 2)) -ge "$total" ]; then printf ' \033[33m~\033[0m %-10s %d/%d\n' "$group" "$installed" "$total" + else + printf ' \033[31m✗\033[0m %-10s %d/%d\n' "$group" "$installed" "$total" fi done |
