diff --git a/.husky/commit-msg b/.husky/commit-msg index 80a987b..cecc4c3 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,10 +1,9 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" - # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1 diff --git a/.husky/pre-commit b/.husky/pre-commit index 33e88dc..81d0cca 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -7,7 +7,7 @@ npx --no-install lint-staged # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1 diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 24e8d97..2411b3d 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -5,7 +5,7 @@ # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1