summaryrefslogtreecommitdiffstats
path: root/redhat/build/is_latest_package_built.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/is_latest_package_built.sh')
-rwxr-xr-xredhat/build/is_latest_package_built.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/build/is_latest_package_built.sh b/redhat/build/is_latest_package_built.sh
index a373ba021..2acb98a6a 100755
--- a/redhat/build/is_latest_package_built.sh
+++ b/redhat/build/is_latest_package_built.sh
@@ -17,7 +17,7 @@ if [ "${BUILT/~/}" != "${BUILT}" ]; then
fi
# Nominal case: no "~" caracter
else
- if [ "${TARBALL%-*}" = "${BUILT%-*}" ] || [[ "${BUILT}" =~ [0-9\.]*-${TARBALL}_[0-9]* ]]; then
+ if [ "${TARBALL%-*}" = "${BUILT%-*}" ] || [[ "${BUILT}" =~ ${TARBALL}_[0-9]* ]]; then
echo "Latest stable package '${PKGNAME}' version '${BUILT}' is already built."
exit 0
fi