The -f `-*` got expanded too many times if there are multiple matches which broke the `if` statement.
Signed-off-by: David Galloway <dgallowa@redhat.com>
chacra_repo_endpoint="${chacra_endpoint}/flavors/default"
# check to make sure ceph-iscsi-config package built
-if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-*.rpm ]; then
+if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-${CEPH_ISCSI_BRANCH}-1.el${RELEASE}.noarch.rpm ]; then
echo "ceph-iscsi rpm not built!"
exit 1
fi
# check to make sure ceph-iscsi-tools package built
-if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-tools-*.rpm ]; then
+if [ ! -f $WORKSPACE/dist/RPMS/ceph-iscsi-tools-${CEPH_ISCSI_TOOLS_BRANCH}-1.el${RELEASE}.noarch.rpm ]; then
echo "ceph-iscsi-tools rpm not built!"
exit 1
fi