From ebdf73f5b4ba4354ed3e20ddc7c1761d021d67a0 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Tue, 13 Sep 2022 00:29:33 +0530 Subject: [PATCH] extract-utils: egrep: warning: egrep is obsolescent; using grep -E Change-Id: I99afd62ec559af16ce09eb3d8df8ad29fdb54231 --- extract_utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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