Skip to content

Commit f19fb72

Browse files
authored
chore: Fix deprecation warning (#60)
1 parent 96ce152 commit f19fb72

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
# Section for git-secrets
52

63
if ! command -v git-secrets > /dev/null 2>&1
@@ -14,4 +11,4 @@ git-secrets --register-aws > /dev/null
1411

1512
echo "Running git-secrets..."
1613
# Scans the commit message.
17-
git-secrets --commit_msg_hook -- "$@"
14+
git-secrets --commit_msg_hook -- "$@"

.husky/pre-commit

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install lint-staged
52

6-
73
# Section for git-secrets
84

95
if ! command -v git-secrets > /dev/null 2>&1
@@ -17,4 +13,4 @@ git-secrets --register-aws > /dev/null
1713

1814
echo "Running git-secrets..."
1915
# Scans all files that are about to be committed.
20-
git-secrets --pre_commit_hook -- "$@"
16+
git-secrets --pre_commit_hook -- "$@"

.husky/prepare-commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
# Section for git-secrets
52

63
if ! command -v git-secrets > /dev/null 2>&1
@@ -14,4 +11,4 @@ git-secrets --register-aws > /dev/null
1411

1512
echo "Running git-secrets..."
1613
# Determines if merging in a commit will introduce tainted history.
17-
git-secrets --prepare_commit_msg_hook -- "$@"
14+
git-secrets --prepare_commit_msg_hook -- "$@"

0 commit comments

Comments
 (0)