Commit da251b8b authored by Jorge Gonzalez's avatar Jorge Gonzalez Committed by GitHub

Change to one-line if statement

parent 6dbdaa4a
...@@ -1710,10 +1710,7 @@ get_battery() { ...@@ -1710,10 +1710,7 @@ get_battery() {
"Mac OS X") "Mac OS X")
battery="$(pmset -g batt | grep -o '[0-9]*%')" battery="$(pmset -g batt | grep -o '[0-9]*%')"
state="$(pmset -g batt | awk '/;/ {print $4}')" state="$(pmset -g batt | awk '/;/ {print $4}')"
if [ "$state" == "charging;" ]; [[ "$state" == "charging;" ]] && battery_state="charging"
then
battery_state="charging"
fi
;; ;;
"Windows") "Windows")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment