Resolve shellcheck SC2196: egrep is non-standard 30/62830/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 16 Jan 2020 02:13:53 +0000 (12:13 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 16 Jan 2020 02:16:42 +0000 (12:16 +1000)
SC2196: egrep is non-standard and deprecated. Use grep -E instead.

Change-Id: I25f083bca244580ec01a8a1e000b13cc5c3ba2e5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
provision/install-python.sh

index 24f702f..5c06432 100755 (executable)
@@ -20,7 +20,7 @@ echo "----> install-python.sh"
 function is_ubuntu()
 {
     # If the file exist and contains ubuntu entry return 0
-    if egrep -q "^ID=ubuntu" /etc/os-release 2> /dev/null; then
+    if grep -Eq "^ID=ubuntu" /etc/os-release 2> /dev/null; then
         echo "Distro is Ubuntu"
         return 0
     fi