use grep -E instead of egrep as per shellcheck SC2196 warning
This commit is contained in:
+1
-1
@@ -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"
|
||||||
# ;;
|
# ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user