Skip to content

Commit

Permalink
fix: better handle spaces in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jul 26, 2024
1 parent 35fba84 commit 7d29633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions husky
Original file line number Diff line number Diff line change
Expand Up @@ -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"

This comment has been minimized.

Copy link
@glensc

glensc Jul 26, 2024

Contributor

technically, you do not need to export PATH, it's already exported.

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

0 comments on commit 7d29633

Please # to comment.