From 3e0e15c980b601e3d90abe25ec809de5c987ba6a Mon Sep 17 00:00:00 2001 From: typicode Date: Sun, 8 May 2022 23:05:22 +0200 Subject: [PATCH] feat: show PATH if command not found --- husky.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/husky.sh b/husky.sh index a09c6caf7..56799760f 100644 --- a/husky.sh +++ b/husky.sh @@ -28,5 +28,9 @@ if [ -z "$husky_skip_init" ]; then echo "husky - $hook_name hook exited with code $exitCode (error)" fi + if [ $exitCode == 127 ]; then + echo "husky - command not found in PATH=$PATH" + fi + exit $exitCode fi