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.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/is_latest_package_built.sh b/redhat/build/is_latest_package_built.sh
index 5ce0c83a9..5792905d9 100755
--- a/redhat/build/is_latest_package_built.sh
+++ b/redhat/build/is_latest_package_built.sh
@@ -4,9 +4,11 @@ PKGNAME="${1##*/}"
TDE_VERSION="${2:-${TDE_VERSION:-14.0.5}}"
BUILT=$(get_latest_built_package_version.sh ${PKGNAME} ${TDE_VERSION})
-TARBALL=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION})
+TARBALL="$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION})"
RPM_PKGNAME="$(get_rpm_package_name.sh ${PKGNAME})"
+[ -z "${TARBALL}" ] && exit 1
+
# If package version contains a "~": it's a pre-release
if [ "${BUILT/\~/}" != "${BUILT}" ]; then
if [ "${BUILT#*\~}" = "${TARBALL#*\~}" ]; then