From 7d296330289b5c6e2feb1940efc3f218b3808e07 Mon Sep 17 00:00:00 2001 From: typicode Date: Fri, 26 Jul 2024 20:01:10 +0200 Subject: [PATCH] fix: better handle spaces in PATH --- husky | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/husky b/husky index facf66f95..bf7c89640 100644 --- a/husky +++ b/husky @@ -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 \ No newline at end of file +exit $c