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 }