From 3217875c05ba80825d2a57aea66a7065d74910a7 Mon Sep 17 00:00:00 2001 From: Siphonight Date: Mon, 20 Jan 2025 22:17:06 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20probl=C3=A8me=20de=20retour=20menu?= =?UTF-8?q?=20utilisateur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin_menu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_menu.sh b/admin_menu.sh index 1539823..a848cd5 100644 --- a/admin_menu.sh +++ b/admin_menu.sh @@ -21,9 +21,9 @@ function sessions_viewer() { elif [[ -z ${choice} ]] || [[ -z ${users_map[${choice}]} ]]; then echo "Sélection invalide." else + local selected_option + selected_option="${users_map[${choice}]}" while true; do - local selected_option - selected_option="${users_map[${choice}]}" Available_Sessions=$(find /home/"${selected_option}"/. -maxdepth 1 -type f -name "*.ttyrec" | grep -v "\.$" | cut -d "/" -f 5) echo "Sélectionnez une session de cet utilisateur que vous souhaitez visionner :"