From fbc6de58500b5037b6a8dc3795d55b0d1286d512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 2 Dec 2018 11:45:46 +0100 Subject: RPM: update build scripts --- redhat/build/get_specfile.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'redhat/build/get_specfile.sh') 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 -- cgit v1.2.1