From 829804aee9aa03b5c5643fd6edbbed6caca89ce6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 13 Dec 2023 22:33:34 -0500 Subject: [PATCH] A couple small corrections with msgbox. Added a message that server was added. If it failed, exith with error code 2. --- tojam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tojam b/tojam index 99876e8..57a8eea 100755 --- a/tojam +++ b/tojam @@ -62,12 +62,12 @@ add_server() { fi done if [[ "${valid}" == "false" ]]; then - dialog --backtitle "Tojam" \ - --msgbox "${errorMessage}" -1 -1 + dialog --msgbox "${errorMessage}" -1 -1 errorMessage="" fi done - echo "[${serverInfo[0]}]=\"${serverInfo[1]}:${serverInfo[2]}\"" >> "${config}/servers.conf" + echo "[${serverInfo[0]}]=\"${serverInfo[1]}:${serverInfo[2]}\"" >> "${config}/servers.conf" || exit 2 + dialog --msgbox "Server \"${serverInfo[0]}\" added. Please relaunch ${0##*/} to use the updated server list." -1 -1 exit 0 }