From: Anil Belur Date: Thu, 16 Jan 2020 02:13:53 +0000 (+1000) Subject: Resolve shellcheck SC2196: egrep is non-standard X-Git-Tag: v0.4.1~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=88d8d56383844aae8921f60d2b5fee19e911142b;p=releng%2Fcommon-packer.git Resolve shellcheck SC2196: egrep is non-standard SC2196: egrep is non-standard and deprecated. Use grep -E instead. Change-Id: I25f083bca244580ec01a8a1e000b13cc5c3ba2e5 Signed-off-by: Anil Belur --- diff --git a/provision/install-python.sh b/provision/install-python.sh index 24f702f..5c06432 100755 --- a/provision/install-python.sh +++ b/provision/install-python.sh @@ -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