use grep -E instead of egrep as per shellcheck SC2196 warning
This commit is contained in:
parent
cb4ded9fcb
commit
a631d03b29
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# case "$uname_s" in
|
# case "$uname_s" in
|
||||||
# *Darwin*)
|
# *Darwin*)
|
||||||
# batt=$(pmset -g batt)
|
# 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")
|
# discharging=$(echo "$batt" | grep -qi "discharging" && echo "true" || echo "false")
|
||||||
# charge="${percentage%%%} / 100"
|
# charge="${percentage%%%} / 100"
|
||||||
# ;;
|
# ;;
|
||||||
|
|
Loading…
Reference in a new issue