Skip to content

Commit

Permalink
feat: show PATH if command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed May 8, 2022
1 parent 356714b commit 3e0e15c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions husky.sh
Expand Up @@ -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

0 comments on commit 3e0e15c

Please sign in to comment.