Skip to content

Commit

Permalink
small fix to precommit (digital-asset#18126)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyverhaegen-da authored Jan 10, 2024
1 parent 489916a commit ee94820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-env/bin/dade-check-main-only-files
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# on a PR branch which touches those files.
#

DADE_SKIP_MAIN_ONLY_CHECK="${DADE_SKIP_MAIN_ONLY_CHECK:-$(git log -1 --format=%b | tr -d ' ' | grep '^run-all-tests:true$')}"
DADE_SKIP_MAIN_ONLY_CHECK="${DADE_SKIP_MAIN_ONLY_CHECK:-$(git log -1 --format=%b | tr -d ' ' | grep '^run-all-tests: *true$')}"
if [[ -n "$DADE_SKIP_MAIN_ONLY_CHECK" ]]; then
# The user has been explicit about whether they want all tests run,
# either by setting the env var, or adding a line to their last commit.
exit 0;
exit 0
fi

MODIFIED_FILES=$(echo "$@" | xargs -n1 | sort)
Expand Down

0 comments on commit ee94820

Please sign in to comment.