diff options
author | François Andriot <albator78@libertysurf.fr> | 2018-12-02 11:45:46 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2018-12-02 21:48:19 +0100 |
commit | c39ca964b3288690923cdb4e63275aebd334e4e2 (patch) | |
tree | 32ce3b08f70ef3c731f4bf9d46f7de8152163f4e /redhat/build/get_specfile.sh | |
parent | 513bfad2d12c9454d8c232ed4a18929924f9c6f6 (diff) | |
download | tde-packaging-c39ca964b3288690923cdb4e63275aebd334e4e2.tar.gz tde-packaging-c39ca964b3288690923cdb4e63275aebd334e4e2.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/build/get_specfile.sh')
-rwxr-xr-x | redhat/build/get_specfile.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/redhat/build/get_specfile.sh b/redhat/build/get_specfile.sh index b7336ffcc..92fbd7ddb 100755 --- a/redhat/build/get_specfile.sh +++ b/redhat/build/get_specfile.sh @@ -25,10 +25,12 @@ for filename in \ "trinity-${PKGNAME}.spec" \ ; do SPECFILE="$(find "${DIST_PACKAGING_DIR}" -follow -name "${filename}")" - if [ -r "${SPECFILE}" ]; then - echo "${SPECFILE}" - exit 0 - fi + [ -r "${SPECFILE}" ] && break || continue done -exit 1 +if [ -r "${SPECFILE}" ]; then + echo "${SPECFILE}" + exit 0 +else + exit 1 +fi |