summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_latest_tarball_filename.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-12-19 12:01:21 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2018-12-19 12:01:21 +0100
commit049a724ea3e59e6586d9816d5b0359de6d9e2048 (patch)
treec971edd8e9ec9746321641d2644f15dfdfee659d /redhat/build/get_latest_tarball_filename.sh
parent1b538786c95311caa20921f619312ae3f8627cf7 (diff)
downloadtde-packaging-049a724ea3e59e6586d9816d5b0359de6d9e2048.tar.gz
tde-packaging-049a724ea3e59e6586d9816d5b0359de6d9e2048.zip
RPM: update build script
Diffstat (limited to 'redhat/build/get_latest_tarball_filename.sh')
-rwxr-xr-xredhat/build/get_latest_tarball_filename.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/build/get_latest_tarball_filename.sh b/redhat/build/get_latest_tarball_filename.sh
index dba56da55..b4626036e 100755
--- a/redhat/build/get_latest_tarball_filename.sh
+++ b/redhat/build/get_latest_tarball_filename.sh
@@ -13,7 +13,7 @@ EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -V | tail -n 1)
[ -r "${RET}" ] && echo "${RET}" && exit 0
-RET=$(find "${TARBALLS_DIR}" "${EXTRA_DIR}" -follow -name "${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -V | tail -n 1)
+RET=$(find "${TARBALLS_DIR}" "${EXTRA_DIR}" -follow -name "${PKGNAME}-${TDE_VERSION}*.tar.gz" -o -name "trinity-${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -V | tail -n 1)
[ -r "${RET}" ] && echo "${RET}" && exit 0
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-[0-9]*.tar.gz" | sort -V | tail -n 1)