Skip to content

Commit b67b6a1

Browse files
committed
Replace use of egrep by grep -E.
1 parent c4117c6 commit b67b6a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distrib/doinstall

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ EOF
3030
if [ "$basedir" = "" ]; then
3131
basedir="$default_dir"
3232
fi
33-
if echo "$basedir" | egrep "^[/~]" >/dev/null; then
33+
if echo "$basedir" | grep -E -e "^[/~]" >/dev/null; then
3434
true
3535
else
3636
basedir=`pwd`/"$basedir"
@@ -103,7 +103,7 @@ install_binaries() {
103103

104104
for f in "$basedir/share/gnatstudio/plug-ins"/*.xml \
105105
"$basedir/share/gnatstudio/plug-ins"/*.py; do
106-
egrep -e '(<documentation_file>|<gnat_examples>)' "$f" >/dev/null 2>&1
106+
grep -E -e '(<documentation_file>|<gnat_examples>)' "$f" >/dev/null 2>&1
107107
if [ $? -ne 0 ]; then
108108
rm -f "$f"
109109
fi

0 commit comments

Comments
 (0)