Remove deprecated egrep calls

This commit is contained in:
2Shirt 2022-09-23 18:19:41 -07:00
parent a97a71a24a
commit a2e1c1fad3
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -35,9 +35,9 @@ fi
function ask() {
while :; do
read -p "$1 [Y/N] " -r answer
if echo "$answer" | egrep -iq '^(y|yes|sure)$'; then
if echo "$answer" | grep -Eiq '^(y|yes|sure)$'; then
return 0
elif echo "$answer" | egrep -iq '^(n|no|nope)$'; then
elif echo "$answer" | grep -Eiq '^(n|no|nope)$'; then
return 1
fi
done
@ -67,7 +67,7 @@ function fix_kit_permissions() {
function load_settings() {
dos2unix "$ROOT_DIR/scripts/wk/cfg/main.py"
while read line; do
if echo "$line" | egrep -q "^\w+='"; then
if echo "$line" | grep -Eq "^\w+='"; then
line="$(echo "$line" | sed -r 's/[\r\n]+//')"
eval "$line"
fi