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:49:02 +0100
commitfbc6de58500b5037b6a8dc3795d55b0d1286d512 (patch)
treeb681e0f3dd40a077f49987eb9ae97f9ded950232 /redhat/build/get_specfile.sh
parentfea0292e6ba6312d462321aaf695999a7fe6f50a (diff)
downloadtde-packaging-fbc6de58500b5037b6a8dc3795d55b0d1286d512.tar.gz
tde-packaging-fbc6de58500b5037b6a8dc3795d55b0d1286d512.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