Skip to content

Commit

Permalink
chore: Improve shell support for husky scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowseza committed Feb 8, 2024
1 parent 0bec06f commit 46d069e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46d069e

Please sign in to comment.