build.sh: when asking for user confirmation, accept y, Y, default (#389)

Old behaviour was only to accept "Y". The prompt suggested, however,
that "y" was the default behaviour, so accepting "return" as
confirmation of that choice is the sane behaviour with least user
experience disruption.
This commit is contained in:
Marcus Müller 2018-03-11 19:41:34 +01:00 committed by xarkes
parent 6e9e931060
commit bf72e4c2b7

View File

@ -33,7 +33,7 @@ if [ $BUILDR2 -eq 1 ]; then
answer="Y" answer="Y"
echo -n "A (new?) version of radare2 will be installed. Do you agree? [Y/n] " echo -n "A (new?) version of radare2 will be installed. Do you agree? [Y/n] "
read answer read answer
if [ "$answer" = "Y" ]; then if [ -z "$answer" -o "$answer" = "Y" -o "$answer" = "y" ]; then
git submodule init && git submodule update git submodule init && git submodule update
cd radare2 || exit 1 cd radare2 || exit 1
./sys/install.sh ./sys/install.sh