Passage en version 1.0.5

Reformattage mineur du script servers_menu.sh.
This commit is contained in:
Siphonight 2025-01-19 15:51:19 +01:00
parent a8408b7180
commit 99eacc3bc0
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
FROM alpine:3.20.0 AS monosphere-builder
#~The open Monosphere Project~
#Autor : Siphonight :)
#Author : Siphonight :)
#Setting default settings, please change them at run
ARG MONOSPHERE_VERSION="1.0.4 Alpha"
ARG MONOSPHERE_VERSION="1.0.5 Alpha"
#Defining build settings

View File

@ -14,7 +14,7 @@ USER_SERVERS=$(awk -v user="${CONNECTED_USER}" '
}
}' "${AUTHORIZED_SERVERS_FILE}")
if [[ -z "${USER_SERVERS}" ]]; then
if [[ -z ${USER_SERVERS} ]]; then
echo "Vous n'avez pas l'autorisation de vous connecter à un serveur."
exit 1
fi
@ -40,10 +40,10 @@ function main_menu() {
read -r -p "Votre choix (1-${counter}): " choice
if [[ "${choice}" == "quit" ]] || [[ "${choice}" == "${counter}" ]]; then
if [[ ${choice} == "quit" ]] || [[ ${choice} == "${counter}" ]]; then
echo "Déconnexion du bastion."
exit 0
elif [[ -z "${choice}" ]] || [[ -z "${server_map[${choice}]}" ]]; then
elif [[ -z ${choice} ]] || [[ -z ${server_map[${choice}]} ]]; then
echo "Sélection invalide."
else
local selected_server