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:49:02 +0100 |
commit | fbc6de58500b5037b6a8dc3795d55b0d1286d512 (patch) | |
tree | b681e0f3dd40a077f49987eb9ae97f9ded950232 /redhat/build/get_specfile.sh | |
parent | fea0292e6ba6312d462321aaf695999a7fe6f50a (diff) | |
download | tde-packaging-fbc6de58500b5037b6a8dc3795d55b0d1286d512.tar.gz tde-packaging-fbc6de58500b5037b6a8dc3795d55b0d1286d512.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 |