mirror of
https://github.com/hanzoai/husky.git
synced 2026-09-24 16:59:45 +00:00
fix: better handle spaces in PATH
This commit is contained in:
@@ -13,10 +13,10 @@ i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
|
||||
|
||||
[ "${HUSKY-}" = "0" ] && exit 0
|
||||
|
||||
export PATH=node_modules/.bin:$PATH
|
||||
export PATH="node_modules/.bin:$PATH"
|
||||
sh -e "$s" "$@"
|
||||
c=$?
|
||||
|
||||
[ $c != 0 ] && echo "husky - $n script failed (code $c)"
|
||||
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
|
||||
exit $c
|
||||
exit $c
|
||||
|
||||
Reference in New Issue
Block a user