change to egrep

This commit is contained in:
m0duspwnens
2022-07-01 08:47:46 -04:00
parent f0ff0d51f7
commit 5f898ae569

View File

@@ -4223,7 +4223,7 @@ install_centos_stable() {
if echo "$STABLE_REV" | grep -q "archive";then # point release being applied
local ver=$(echo "$STABLE_REV"|awk -F/ '{print $2}') # strip archive/
elif echo "$STABLE_REV" | grep -vq "archive|latest";then # latest or major version(3003, 3004, etc) being applie
elif echo "$STABLE_REV" | egrep -vq "archive|latest";then # latest or major version(3003, 3004, etc) being applie
local ver=$STABLE_REV
fi