mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
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:
parent
6e9e931060
commit
bf72e4c2b7
2
build.sh
2
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user