aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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