Skip to content

Commit 3e0e15c

Browse files
committed
feat: show PATH if command not found
1 parent 356714b commit 3e0e15c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

husky.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ if [ -z "$husky_skip_init" ]; then
2828
echo "husky - $hook_name hook exited with code $exitCode (error)"
2929
fi
3030

31+
if [ $exitCode == 127 ]; then
32+
echo "husky - command not found in PATH=$PATH"
33+
fi
34+
3135
exit $exitCode
3236
fi

0 commit comments

Comments
 (0)