Skip to content

Commit

Permalink
fix: typo in regex condition
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Sep 24, 2024
1 parent 2f504d3 commit 83b0eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars/docOnlyChange.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ boolean call(String target_branch) {
echo "Hrm. Got an error fetching the target branch"
exit 0
fi
if git diff --no-commit-id --name-only origin/${TARGET_BRANCH} HEAD |
grep -e \".*\" ; then
if ! git diff --no-commit-id --name-only origin/${TARGET_BRANCH} HEAD | grep -q -e ".*"; then
echo "Empty commit diff"
exit 0
fi
git diff --no-commit-id --name-only origin/${TARGET_BRANCH} HEAD |
Expand Down

0 comments on commit 83b0eae

Please sign in to comment.