Skip to content

Commit 9bce980

Browse files
author
Brennon York
committed
ensure both gate files exist
1 parent 8f3c4b4 commit 9bce980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/pr_new_dependencies.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ git checkout "${current_pr_head}"
4747
# Check if any *.pom files from the current branch are different from the master
4848
difference_q=""
4949
for p in $(find -name "pom.xml"); do
50-
difference_q="${difference_q}$(diff $p.gate $p)"
50+
[ -f "${p}" && -f "${p}.gate" ] && \
51+
difference_q="${difference_q}$(diff $p.gate $p)"
5152
done
5253

5354
# If no pom files were changed we can easily say no new dependencies were added

0 commit comments

Comments
 (0)