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 authored and nikoladavitkovski committed Sep 5, 2022
1 parent 6d4ad09 commit 0f9ebb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions husky.sh
Original file line number Diff line number Diff line change
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 0f9ebb4

Please sign in to comment.