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