mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-09 00:22:02 -07:00
[install] Make default answer "y" (#1195)
This commit is contained in:
1
install
1
install
@@ -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
|
||||||
|
Reference in New Issue
Block a user