diff --git a/setup/build_linux b/setup/build_linux index aa2bc5cf..35e44b94 100755 --- a/setup/build_linux +++ b/setup/build_linux @@ -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