summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPierre P <coaxial@users.noreply.github.com>2018-01-13 13:19:33 -0500
committerJunegunn Choi <junegunn.c@gmail.com>2018-01-14 03:19:33 +0900
commit7f606665cbfa2334057d0c5be75b98e2b4e06016 (patch)
tree98881cf23433ee18dad30728b7ceb507f6cbb59d /install
parent202872c2dc0cec5216466d6fc9f5c7346a932973 (diff)
[install] Make default answer "y" (#1195)
Diffstat (limited to 'install')
-rwxr-xr-xinstall1
1 files changed, 1 insertions, 0 deletions
diff --git a/install b/install
index cf6678f1..7129a01a 100755
--- a/install
+++ b/install
@@ -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