correction de bug, le nom de l'archive à sauver ne change plus lors
de l'utilisation des menus
This commit is contained in:
parent
ad81d066db
commit
9561d05a84
22
borg-gui.sh
22
borg-gui.sh
@ -66,9 +66,9 @@ ZenityPulsate () {
|
||||
|
||||
BorgFilter () {
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
@ -154,10 +154,10 @@ qu\nQUITTER\
|
||||
elif [ "$choixmenu" = "ms" ];then
|
||||
# Monter une archive
|
||||
BorgFilter
|
||||
if [ ! "$borg_archive" = "" ];then
|
||||
mkdir $HOME/$borg_archive
|
||||
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>"
|
||||
if [ ! "$Borg_Archive" = "" ];then
|
||||
mkdir $HOME/$Borg_Archive
|
||||
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>"
|
||||
fi
|
||||
|
||||
elif [ "$choixmenu" = "dm" ];then
|
||||
@ -172,21 +172,21 @@ qu\nQUITTER\
|
||||
elif [ "$choixmenu" = "ss" ];then
|
||||
# Supprimmer une archive
|
||||
BorgFilter
|
||||
if [ "$borg_archive" = "" ];then
|
||||
if [ "$Borg_Archive" = "" ];then
|
||||
zenity $W --info --text "Aucune archive choisie, retour au menu"
|
||||
else
|
||||
borg delete $borg_repo::$borg_archive | ZenityPulsate
|
||||
zenity $W --info --text="Suppresion de l'archive $borg_archive terminée"
|
||||
borg delete $borg_repo::$Borg_Archive | ZenityPulsate
|
||||
zenity $W --info --text="Suppresion de l'archive $Borg_Archive terminée"
|
||||
fi
|
||||
|
||||
|
||||
elif [ "$choixmenu" = "is" ];then
|
||||
# Information archive
|
||||
BorgFilter
|
||||
if [ "$borg_archive" = "" ];then
|
||||
if [ "$Borg_Archive" = "" ];then
|
||||
zenity $W --info --text "Aucune archive choisie, retour au menu"
|
||||
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
|
||||
|
||||
elif [ "$choixmenu" = "fi" ];then
|
||||
|
Loading…
Reference in New Issue
Block a user