From 88d8d56383844aae8921f60d2b5fee19e911142b Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Thu, 16 Jan 2020 12:13:53 +1000 Subject: [PATCH] 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 --- provision/install-python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6