summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
Diffstat (limited to 'redhat')
-rwxr-xr-xredhat/build/get_latest_tarball_filename.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/redhat/build/get_latest_tarball_filename.sh b/redhat/build/get_latest_tarball_filename.sh
index c3f35cf43..e2558d585 100755
--- a/redhat/build/get_latest_tarball_filename.sh
+++ b/redhat/build/get_latest_tarball_filename.sh
@@ -12,7 +12,13 @@ EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
RET=""
for dir in "${TARBALLS_DIR}" "${EXTRA_DIR}" "${DIST_PACKAGING_DIR}"; do
- for v in "${PKGNAME}-${TDE_VERSION}*.tar.*" "trinity-${PKGNAME}-${TDE_VERSION}*.tar.*" "${PKGNAME}[-_][0-9]*.tar.*"; do
+ for v in \
+ "${PKGNAME}-${TDE_VERSION}.tar.*" \
+ "${PKGNAME}-${TDE_VERSION}*.tar.*" \
+ "trinity-${PKGNAME}-${TDE_VERSION}.tar.*" \
+ "trinity-${PKGNAME}-${TDE_VERSION}*.tar.*" \
+ "${PKGNAME}[-_][0-9]*.tar.*" \
+ ; do
RET=$(find "${dir}" -follow -type f -name ${v} | sort | tail -n 1)
[ -r "${RET}" ] && break
done