From 3810a3123000aaed9976524ff03b64b211152159 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Sun, 24 May 2020 16:31:26 +0200 Subject: [PATCH] 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. --- download_and_compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download_and_compile.sh b/download_and_compile.sh index 028987f..8f0c3f3 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -252,9 +252,9 @@ subsequent\nupdates are fetched from SourceForge. This should be quite safe, \ because\n 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 ;;