[install] Make default answer "y" (#1195)

This commit is contained in:
Pierre P 2018-01-13 13:19:33 -05:00 committed by Junegunn Choi
parent 202872c2dc
commit 7f606665cb
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ fzf_base="$(pwd)"
ask() {
while true; do
read -p "$1 ([y]/n) " -r
REPLY=${REPLY:-"y"}
if [[ $REPLY =~ ^[Yy]$ ]]; then
return 1
elif [[ $REPLY =~ ^[Nn]$ ]]; then