support arch
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user