Browse Source

ui changes

pull/3288/head
Daniel Gibbs 5 years ago
parent
commit
5a01a99758
  1. 2
      lgsm/functions/command_send.sh
  2. 7
      lgsm/functions/core_messages.sh

2
lgsm/functions/command_send.sh

@ -10,7 +10,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
check.sh check.sh
if [ -z "${userinput2}" ]; then if [ -z "${userinput2}" ]; then
fn_print_header 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 fi
check_status.sh check_status.sh

7
lgsm/functions/core_messages.sh

@ -364,14 +364,15 @@ fn_prompt_message(){
local prompt="$1" local prompt="$1"
while true; do while true; do
read -e -p "${prompt}" -r answer read -e -p "${prompt}" -r answer
if fn_prompt_yn "\"${answer}\", is this correct ?" Y; then echo -e "${answer}"
break; if ! fn_prompt_yn "Continue?" Y; then
exitcode=0
core_exit.sh
fi fi
done done
echo "${answer}" echo "${answer}"
} }
# On-Screen End of Line # On-Screen End of Line
################################## ##################################

Loading…
Cancel
Save