correction de bug, le nom de l'archive à sauver ne change plus lors

de l'utilisation des menus
This commit is contained in:
Djan GICQUEL 2021-08-11 13:31:23 +02:00
parent ad81d066db
commit 9561d05a84

View File

@ -66,9 +66,9 @@ ZenityPulsate () {
BorgFilter () { BorgFilter () {
if [ "$filter" = "" ];then if [ "$filter" = "" ];then
borg_archive=$(borg list --short $borg_repo | zenity $H $iconborg --list --title "Listes des archives" --column "Archive") Borg_Archive=$(borg list --short $borg_repo | zenity $H $iconborg --list --title "Listes des archives" --column "Archive")
else else
borg_archive=$(borg list --short $borg_repo| grep $filter | zenity $H $iconborg --list --title "Listes des archives" --column "Archive") Borg_Archive=$(borg list --short $borg_repo| grep $filter | zenity $H $iconborg --list --title "Listes des archives" --column "Archive")
fi fi
} }
@ -154,10 +154,10 @@ qu\nQUITTER\
elif [ "$choixmenu" = "ms" ];then elif [ "$choixmenu" = "ms" ];then
# Monter une archive # Monter une archive
BorgFilter BorgFilter
if [ ! "$borg_archive" = "" ];then if [ ! "$Borg_Archive" = "" ];then
mkdir $HOME/$borg_archive mkdir $HOME/$Borg_Archive
borg mount $borg_repo::$borg_archive $HOME/$borg_archive | ZenityPulsate borg mount $borg_repo::$Borg_Archive $HOME/$Borg_Archive | ZenityPulsate
zenity $W --info --text="La sauvegarde est disponible dans le dossier\n<tt>$HOME/$borg_archive</tt>" zenity $W --info --text="La sauvegarde est disponible dans le dossier\n<tt>$HOME/$Borg_Archive</tt>"
fi fi
elif [ "$choixmenu" = "dm" ];then elif [ "$choixmenu" = "dm" ];then
@ -172,21 +172,21 @@ qu\nQUITTER\
elif [ "$choixmenu" = "ss" ];then elif [ "$choixmenu" = "ss" ];then
# Supprimmer une archive # Supprimmer une archive
BorgFilter BorgFilter
if [ "$borg_archive" = "" ];then if [ "$Borg_Archive" = "" ];then
zenity $W --info --text "Aucune archive choisie, retour au menu" zenity $W --info --text "Aucune archive choisie, retour au menu"
else else
borg delete $borg_repo::$borg_archive | ZenityPulsate borg delete $borg_repo::$Borg_Archive | ZenityPulsate
zenity $W --info --text="Suppresion de l'archive $borg_archive terminée" zenity $W --info --text="Suppresion de l'archive $Borg_Archive terminée"
fi fi
elif [ "$choixmenu" = "is" ];then elif [ "$choixmenu" = "is" ];then
# Information archive # Information archive
BorgFilter BorgFilter
if [ "$borg_archive" = "" ];then if [ "$Borg_Archive" = "" ];then
zenity $W --info --text "Aucune archive choisie, retour au menu" zenity $W --info --text "Aucune archive choisie, retour au menu"
else else
zenity $W --info --text="<tt>$(borg info $borg_repo::$borg_archive)</tt>" | ZenityPulsate zenity $W --info --text="<tt>$(borg info $borg_repo::$Borg_Archive)</tt>" | ZenityPulsate
fi fi
elif [ "$choixmenu" = "fi" ];then elif [ "$choixmenu" = "fi" ];then