mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Made change simpler
This commit is contained in:
parent
13a72920d5
commit
87fea9d2f0
1 changed files with 1 additions and 5 deletions
|
@ -60,12 +60,8 @@ battery () {
|
|||
batlvl=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||
fi
|
||||
|
||||
if [ $batlvl -ge 100 ]; then
|
||||
batlvl=100
|
||||
fi
|
||||
|
||||
# Change color depending on level
|
||||
if [ $batlvl -eq 100 ]; then
|
||||
if [ $batlvl -ge 100 ]; then
|
||||
echo -en "The battery is ${FULL}fully charged${NCOL}. "
|
||||
else
|
||||
echo -en "The battery level is "
|
||||
|
|
Loading…
Reference in a new issue