summaryrefslogtreecommitdiffstats
path: root/redhat/build/is_latest_package_built.sh
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2020-01-18 20:25:56 +0100
committerFrançois Andriot <[email protected]>2020-01-18 20:29:31 +0100
commita01912d54a1bf24aaa20bfbfb33709134d52d6f6 (patch)
treed8ce8396f2df160f29730d13803af4717a361cdd /redhat/build/is_latest_package_built.sh
parent685d3568bfc83de6ab77e5f817edb1d3514db323 (diff)
downloadtde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.tar.gz
tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.zip
RPM: update build scripts
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