Skip to content

Commit

Permalink
pre-commit: Handle missing NO_VERIFY variable
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Jun 6, 2024
1 parent f9154a8 commit 5a990dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e -u -o pipefail

if [ -n "$NO_VERIFY" ]; then
if [ -n "${NO_VERIFY:-}" ]; then
echo "Skipping pre-commit hook" >&2
exit 0
fi
Expand Down

0 comments on commit 5a990dc

Please sign in to comment.