Commit 38445a4f authored by Mike Hibler's avatar Mike Hibler
Browse files

Fix up RE for matching RHL9

parent c647c4d7
......@@ -30,7 +30,7 @@ Linux)
rel=`grep DISTRIB_RELEASE /etc/lsb-release | awk -F = '{ print $2; }'`
fi
if [ -z "$dist" -a -r /etc/redhat-release ]; then
rel=`grep 'Red Hat' /etc/redhat-release | sed -e 's/Red Hat Linux release \([0-9]\.[0-9]\).*/\1/'`
rel=`grep 'Red Hat' /etc/redhat-release | sed -e 's/Red Hat Linux release \([0-9]\(\.[0-9]\)\?\).*/\1/'`
if [ -n "$rel" ]; then
dist="Redhat"
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment