correction sur la fonction filtre
This commit is contained in:
parent
b5add4a158
commit
890f28a1d2
16
borg-gui.sh
16
borg-gui.sh
@ -130,7 +130,12 @@ if [ "$choixmenu" = "cs" ] ;then
|
|||||||
elif [ "$choixmenu" = "ms" ];then
|
elif [ "$choixmenu" = "ms" ];then
|
||||||
# Monter une archive
|
# Monter une archive
|
||||||
|
|
||||||
|
if [ "$filter" = "" ];then
|
||||||
|
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
else
|
||||||
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir $HOME/$borg_archive
|
mkdir $HOME/$borg_archive
|
||||||
borg mount $borg_repo::$borg_archive $HOME/$borg_archive | zenity --width=600 --progress --pulsate --auto-close
|
borg mount $borg_repo::$borg_archive $HOME/$borg_archive | zenity --width=600 --progress --pulsate --auto-close
|
||||||
zenity --width=600 --info --text="La sauvegarde est disponible dans le dossier\n<tt>$HOME/$borg_archive</tt>"
|
zenity --width=600 --info --text="La sauvegarde est disponible dans le dossier\n<tt>$HOME/$borg_archive</tt>"
|
||||||
@ -146,7 +151,13 @@ elif [ "$choixmenu" = "dm" ];then
|
|||||||
elif [ "$choixmenu" = "ss" ];then
|
elif [ "$choixmenu" = "ss" ];then
|
||||||
# Supprimmer une archive
|
# Supprimmer une archive
|
||||||
|
|
||||||
|
if [ "$filter" = "" ];then
|
||||||
|
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
else
|
||||||
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$borg_archive" = "" ];then
|
if [ "$borg_archive" = "" ];then
|
||||||
zenity --width=600 --info --text "Aucune archive choisie, retour au menu"
|
zenity --width=600 --info --text "Aucune archive choisie, retour au menu"
|
||||||
else
|
else
|
||||||
@ -158,7 +169,12 @@ elif [ "$choixmenu" = "ss" ];then
|
|||||||
elif [ "$choixmenu" = "is" ];then
|
elif [ "$choixmenu" = "is" ];then
|
||||||
# Information archive
|
# Information archive
|
||||||
|
|
||||||
|
if [ "$filter" = "" ];then
|
||||||
|
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
else
|
||||||
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$borg_archive" = "" ];then
|
if [ "$borg_archive" = "" ];then
|
||||||
zenity --width=600 --info --text "Aucune archive choisie, retour au menu"
|
zenity --width=600 --info --text "Aucune archive choisie, retour au menu"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user