Skip to content

Commit

Permalink
chore: fix undefined env var in justfile (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q authored May 15, 2024
1 parent 99616a0 commit 48a31d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ help:
# setting up the pre-commit hooks.
setup:
poetry install
# setup git hooks unless environment variable HUGR_JUST_INHIBIT_GIT_HOOKS is non-empty
[[ -z $HUGR_JUST_INHIBIT_GIT_HOOKS ]] && poetry run pre-commit install -t pre-commit || true
[[ -n "${HUGR_JUST_INHIBIT_GIT_HOOKS:-}" ]] || poetry run pre-commit install -t pre-commit

# Run the pre-commit checks.
check:
Expand Down

0 comments on commit 48a31d7

Please sign in to comment.