1
0
Fork 0

download_and_compile.sh: improve user-interaction

Since the prompt is repeated by _yes_no_quit_prompt() every time an
invalid answer is given, a short sentence is better than the empty
string.
This commit is contained in:
Florent Rougon 2020-05-24 16:31:26 +02:00
parent 00710497b0
commit 3810a31230

View file

@ -252,9 +252,9 @@ subsequent\nupdates are fetched from SourceForge. This should be quite safe, \
because\n<https://gitlab.com/flightgear/fgdata> is an official mirror of \
FGData (it is\nmaintained by FlightGear developers). Answer 'y' to proceed \
this way. If you\nanswer 'n', we'll *try* to clone FGData from SourceForge \
using https. Answer 'q'\nif you want to quit."
using https. Answer 'q'\nif you want to quit. "
fi
_yes_no_quit_prompt "" y; prompt_res=$?
_yes_no_quit_prompt "What is your choice?" y; prompt_res=$?
set -e
case $prompt_res in
0) retcode=0 ;;