From 2dd733908adce7f7997f45e192f2ec791096aa0f Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Sat, 24 Jul 2021 12:35:09 +0200 Subject: [PATCH] =?UTF-8?q?si=20aucun=20choix=20de=20chemin=20dans=20le=20?= =?UTF-8?q?menu=20de=20d=C3=A9montage,=20retour=20au=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borg-gui.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/borg-gui.sh b/borg-gui.sh index 330cb9d..92ca90e 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -146,9 +146,11 @@ elif [ "$choixmenu" = "dm" ];then # Demonter une archive ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=$H --window-icon=$HOME/.icons/borg.svg --list --title "Liste des points de montages" --column "Archive") - fusermount -u $ptnmontage | zenity --width=$W --progress --pulsate --auto-close - sleep 5 | zenity --width=$W --progress --pulsate --auto-close - rmdir $ptnmontage | zenity --width=$W --progress --pulsate --auto-close + if [ "$ptnmontage" != "" ];then + fusermount -u $ptnmontage | zenity --width=$W --progress --pulsate --auto-close + sleep 2 | zenity --width=$W --progress --pulsate --auto-close + rmdir $ptnmontage | zenity --width=$W --progress --pulsate --auto-close + fi elif [ "$choixmenu" = "ss" ];then # Supprimmer une archive