diff options
author | Chirayu Desai <chirayudesai1@gmail.com> | 2022-09-13 00:29:33 +0530 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2022-09-28 00:05:07 +0200 |
commit | ebdf73f5b4ba4354ed3e20ddc7c1761d021d67a0 (patch) | |
tree | 4aa01e9de1873f8e07376906d62aabbaff12bb5c | |
parent | 04563775b3d60a6645da3382ffa5ea38b76bae9a (diff) |
extract-utils: egrep: warning: egrep is obsolescent; using grep -E
Change-Id: I99afd62ec559af16ce09eb3d8df8ad29fdb54231
-rw-r--r-- | extract_utils.sh | 4 |
1 files 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 |