mirror of
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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"
# ;;