From 5a01a99758f733c07ebd767039e99d9bdcd45000 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 20 Feb 2021 20:34:48 +0000 Subject: [PATCH] ui changes --- lgsm/functions/command_send.sh | 2 +- lgsm/functions/core_messages.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/command_send.sh b/lgsm/functions/command_send.sh index 8cfe3f814..67bb04849 100644 --- a/lgsm/functions/command_send.sh +++ b/lgsm/functions/command_send.sh @@ -10,7 +10,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" check.sh if [ -z "${userinput2}" ]; then fn_print_header - fn_print_information_nl "Send allows a command to be sent to the console." + fn_print_information_nl "Send a command to to the console." fi check_status.sh diff --git a/lgsm/functions/core_messages.sh b/lgsm/functions/core_messages.sh index 63570b7ed..387e95e91 100755 --- a/lgsm/functions/core_messages.sh +++ b/lgsm/functions/core_messages.sh @@ -364,14 +364,15 @@ fn_prompt_message(){ local prompt="$1" while true; do read -e -p "${prompt}" -r answer - if fn_prompt_yn "\"${answer}\", is this correct ?" Y; then - break; + echo -e "${answer}" + if ! fn_prompt_yn "Continue?" Y; then + exitcode=0 + core_exit.sh fi done echo "${answer}" } - # On-Screen End of Line ##################################