extract-utils: egrep: warning: egrep is obsolescent; using grep -E

Change-Id: I99afd62ec559af16ce09eb3d8df8ad29fdb54231
This commit is contained in:
Chirayu Desai
2022-09-13 00:29:33 +05:30
committed by Bruno Martins
parent 04563775b3
commit ebdf73f5b4

View File

@@ -1047,7 +1047,7 @@ function parse_file_list() {
PRODUCT_COPY_FILES_FIXUP_HASHES+=("$FIXUP_HASH") PRODUCT_COPY_FILES_FIXUP_HASHES+=("$FIXUP_HASH")
fi 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 fi
# Retrieve IP and PORT info if we're using a TCP connection # 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}') | head -1 | awk '{print $1}')
adb root &> /dev/null adb root &> /dev/null
sleep 0.3 sleep 0.3