Passage en version 1.0.5
Reformattage mineur du script servers_menu.sh.
This commit is contained in:
parent
a8408b7180
commit
99eacc3bc0
@ -1,10 +1,10 @@
|
|||||||
FROM alpine:3.20.0 AS monosphere-builder
|
FROM alpine:3.20.0 AS monosphere-builder
|
||||||
#~The open Monosphere Project~
|
#~The open Monosphere Project~
|
||||||
#Autor : Siphonight :)
|
#Author : Siphonight :)
|
||||||
|
|
||||||
|
|
||||||
#Setting default settings, please change them at run
|
#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
|
#Defining build settings
|
||||||
|
|||||||
@ -14,7 +14,7 @@ USER_SERVERS=$(awk -v user="${CONNECTED_USER}" '
|
|||||||
}
|
}
|
||||||
}' "${AUTHORIZED_SERVERS_FILE}")
|
}' "${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."
|
echo "Vous n'avez pas l'autorisation de vous connecter à un serveur."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -40,10 +40,10 @@ function main_menu() {
|
|||||||
|
|
||||||
read -r -p "Votre choix (1-${counter}): " choice
|
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."
|
echo "Déconnexion du bastion."
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ -z "${choice}" ]] || [[ -z "${server_map[${choice}]}" ]]; then
|
elif [[ -z ${choice} ]] || [[ -z ${server_map[${choice}]} ]]; then
|
||||||
echo "Sélection invalide."
|
echo "Sélection invalide."
|
||||||
else
|
else
|
||||||
local selected_server
|
local selected_server
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user