1
0
Fork 0
mirror of synced 2024-05-26 20:11:09 -04:00

use grep -E instead of egrep as per shellcheck SC2196 warning

This commit is contained in:
Gregory Pakosz 2017-05-26 15:49:35 +02:00
parent cb4ded9fcb
commit a631d03b29

View file

@ -250,7 +250,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# case "$uname_s" in
# *Darwin*)
# batt=$(pmset -g batt)
# percentage=$(echo "$batt" |egrep -o [0-9]+%) || return
# percentage=$(echo "$batt" | grep -E -o [0-9]+%) || return
# discharging=$(echo "$batt" | grep -qi "discharging" && echo "true" || echo "false")
# charge="${percentage%%%} / 100"
# ;;