Skip to content

Commit

Permalink
Reading direct from TTY is needed when installing with cURL.
Browse files Browse the repository at this point in the history
  • Loading branch information
THRILL-jacinto committed Oct 7, 2015
1 parent 257eeef commit e08f24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pushd `git rev-parse --git-dir`/hooks > /dev/null

if [ -f post-commit ] || [ -L post-commit ]; then
echo "A post-commit file already exists."
read -p "Overwrite? [y/N] " -n 1 -r
read -p "Overwrite? [y/N] " -n 1 -r < /dev/tty
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
Expand Down

0 comments on commit e08f24f

Please sign in to comment.