A couple small corrections with msgbox. Added a message that server was added. If it failed, exith with error code 2.
This commit is contained in:
parent
ef098a76a2
commit
829804aee9
6
tojam
6
tojam
@ -62,12 +62,12 @@ add_server() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ "${valid}" == "false" ]]; then
|
if [[ "${valid}" == "false" ]]; then
|
||||||
dialog --backtitle "Tojam" \
|
dialog --msgbox "${errorMessage}" -1 -1
|
||||||
--msgbox "${errorMessage}" -1 -1
|
|
||||||
errorMessage=""
|
errorMessage=""
|
||||||
fi
|
fi
|
||||||
done
|
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
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user