support arch

This commit is contained in:
2026-04-20 14:53:03 +07:00
parent 0d8793426f
commit 09aaab2e42
2 changed files with 35 additions and 5 deletions
+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}"