Skip to content

Commit 8c5a08c

Browse files
authoredSep 24, 2023
fix: do not search for rc file at /husky/init.sh (#1304)
1 parent 4f7f37f commit 8c5a08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎husky.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [ -z "$husky_skip_init" ]; then
1414
exit 0
1515
fi
1616

17-
for file in "$XDG_CONFIG_HOME/husky/init.sh" "$HOME/.config/husky/init.sh" "$HOME/.huskyrc.sh"; do
17+
for file in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc.sh"; do
1818
if [ -f "$file" ]; then
1919
debug "sourcing $file"
2020
. "$file"

0 commit comments

Comments
 (0)
Please sign in to comment.