Code Review
/
releng
/
common-packer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1d5bbea
)
Resolve shellcheck SC2196: egrep is non-standard
30/62830/1
author
Anil Belur
<abelur@linuxfoundation.org>
Thu, 16 Jan 2020 02:13:53 +0000
(12:13 +1000)
committer
Anil 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
patch
|
blob
|
history
diff --git
a/provision/install-python.sh
b/provision/install-python.sh
index
24f702f
..
5c06432
100755
(executable)
--- 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 -E
q "^ID=ubuntu" /etc/os-release 2> /dev/null; then
echo "Distro is Ubuntu"
return 0
fi