support arch

This commit is contained in:
thuanle committed 2026-04-20 14:53:03 +07:00
1 parent 0d8793426f
commit 09aaab2e42
2 files changed
+35 -5

No files matched your search

+13 -1
View File
@@ -33,7 +33,14 @@ RESET="\033[0m"
# ===== ARGS =====
VERBOSE=0
[[ "$1" == "-v" ]] && VERBOSE=1
ONELINE=0
while [[ $# -gt 0 ]]; do
case "$1" in
-v) VERBOSE=1 ;;
-1) ONELINE=1 ;;
esac
shift
done
# ===== LOAD TOKEN =====
case "$OS" in
@@ -118,6 +125,11 @@ fi
ICON=$(awk -v p="$T_PERCENT" 'BEGIN { if (p < 50) print "🟢"; else if (p > 80) print "🔴"; else print "🟡" }')
if [ "$ONELINE" -eq 1 ]; then
echo "GLM: ${T_PERCENT}%${REMAIN}${ICON}"
exit 0
fi
echo "GLM: ${T_PERCENT}%${REMAIN}${ICON}"
echo "---"
echo "✅ Account: ${LEVEL}"