diff --git a/rpm-ci.yml b/rpm-ci.yml index 4311c31e90d824d5f03b10d542629188dbd23229..8e1212ca3fe63f59e49b62a548a842d9c8503857 100644 --- a/rpm-ci.yml +++ b/rpm-ci.yml @@ -75,12 +75,10 @@ stages: sleep 15 exit 1 fi - - COUNT=0 - - set +e - - COUNT=`ls -l build/SRPMS/*${DIST}.src.rpm 2>/dev/null | wc -l` + - COUNT=`find build/SRPMS/ -name "*${DIST}.src.rpm" | wc -l` - | if [[ $COUNT -eq 0 ]]; then - echo_error "No source RPMs found in build/SRPMS/*${DIST}.src.rpm, please check your Makefile and your .spec" + echo_error "No source RPMs found that match build/SRPMS/*${DIST}.src.rpm, please check your Makefile and your .spec" echo "Current directory is: `pwd`" ls -lR build/SRPMS/ sleep 15