summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_specfile.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-12-02 11:45:46 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2018-12-02 21:48:19 +0100
commitc39ca964b3288690923cdb4e63275aebd334e4e2 (patch)
tree32ce3b08f70ef3c731f4bf9d46f7de8152163f4e /redhat/build/get_specfile.sh
parent513bfad2d12c9454d8c232ed4a18929924f9c6f6 (diff)
downloadtde-packaging-c39ca964b3288690923cdb4e63275aebd334e4e2.tar.gz
tde-packaging-c39ca964b3288690923cdb4e63275aebd334e4e2.zip
RPM: update build scripts
Diffstat (limited to 'redhat/build/get_specfile.sh')
-rwxr-xr-xredhat/build/get_specfile.sh12
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