From 0f9ebb4a4ad2c242dce0f0700b41b5a755351aec 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