Skip to content

Commit b6c3f54

Browse files
committed
CCM-15633: Use find in publish-pact-contracts.sh
1 parent 0deb34d commit b6c3f54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/publish-pact-contracts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [[ $local_version == $published_version ]]; then
2222
exit 0
2323
fi
2424

25-
if ! ls pact-contracts/pacts/**/*.json >/dev/null 2>&1; then
25+
if ! find pact-contracts/pacts -type f -name '*.json' -print -quit | grep -q .; then
2626
echo "Cannot publish package: no pact .json files found under pact-contracts/pacts"
2727
exit 1
2828
fi

0 commit comments

Comments
 (0)