This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This pre-commit hook will prompt for every file that contains a `console.log`, `debugger` | |
# or `puts` statement. This should avoid stupidly commiting debugging information :) | |
exec < /dev/tty | |
confirm() { | |
echo "${1:-Are you sure? [y/N]}" | |
read -r response |
OlderNewer