[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

View File

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