aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:27 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:27 +0100
commitb76c61bc0eb1930d576c04226d9b61cbb23b0a60 (patch)
treec66ea020a904547ff9be40dac97ab7814202fe5d /justfile
parenta52a8022b52c5c0b9f143bb7aab1d2f4632d144e (diff)
downloaddotfiles-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%)
Diffstat (limited to 'justfile')
-rw-r--r--justfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/justfile b/justfile
index 71c1529..e6ddca9 100644
--- a/justfile
+++ b/justfile
@@ -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