From 3c055025af63f66402edc4304aa9c9ec84e04f31 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Sun, 14 Nov 2021 20:04:58 +0100 Subject: [PATCH] =?UTF-8?q?Modification=20du=20menu=20ne=20pas=20autoriser?= =?UTF-8?q?=20=C3=A0=20quitter=20si=20des=20archives=20sont=20toujours=20m?= =?UTF-8?q?ont=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borg-gui.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/borg-gui.sh b/borg-gui.sh index 7675e40..5bcded5 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -110,7 +110,7 @@ TestBorgRepo # MENU PRINCIPAL Gestion des options du menu ################################################################################# -while [ ! "$choixmenu" = "qu" ];do +while [ ! "$quitter" = "yes" ];do # si aucune archive n'est montée, cacher l'entrée de menu «Démonter une archive» if [ "$(mount | grep borgfs)" != "" ];then @@ -211,5 +211,13 @@ qu\nQUITTER\ # Afficher le profil zenity $W $H --info --text="$(cd $dossierprofil && cat "$fichierprofil".conf)" + + elif [ "$choixmenu" = "qu" ];then + if [ "$(mount | grep borgfs)" = "" ];then + quitter="yes" + else + zenity $W --warning --text="Une ou des archives sont montées.\nDémontez-le afin de laisser le dépôt dans un état cohérent." + fi + fi done