Remove deprecated egrep calls
This commit is contained in:
parent
a97a71a24a
commit
a2e1c1fad3
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue