Skip to content

Commit 7d29633

Browse files
authored
fix: better handle spaces in PATH
1 parent 35fba84 commit 7d29633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

husky

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
1313

1414
[ "${HUSKY-}" = "0" ] && exit 0
1515

16-
export PATH=node_modules/.bin:$PATH
16+
export PATH="node_modules/.bin:$PATH"
1717
sh -e "$s" "$@"
1818
c=$?
1919

2020
[ $c != 0 ] && echo "husky - $n script failed (code $c)"
2121
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
22-
exit $c
22+
exit $c

0 commit comments

Comments
 (0)