Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ggshield/cmd/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# Because of #467, we must use /bin/sh as a shell, so the shell code must
# not make use of any Bash extension, such as double square brackets in
# `if` statements.
# This also ensures compatibility with Husky and other git hook managers.
LOCAL_HOOK_SNIPPET = """
if [ -f .git/hooks/{hook_type} ]; then
if ! .git/hooks/{hook_type} "$@"; then
Expand Down