diff --git a/extract_utils.sh b/extract_utils.sh index ff64af3..404359b 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1047,7 +1047,7 @@ function parse_file_list() { PRODUCT_COPY_FILES_FIXUP_HASHES+=("$FIXUP_HASH") fi - done < <(egrep -v '(^#|^[[:space:]]*$)' "$LIST" | LC_ALL=C sort | uniq) + done < <(grep -v -E '(^#|^[[:space:]]*$)' "$LIST" | LC_ALL=C sort | uniq) } # @@ -1243,7 +1243,7 @@ function init_adb_connection() { fi # Retrieve IP and PORT info if we're using a TCP connection - TCPIPPORT=$(adb devices | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+[^0-9]+' \ + TCPIPPORT=$(adb devices | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+[^0-9]+' \ | head -1 | awk '{print $1}') adb root &> /dev/null sleep 0.3