ajout de l'entrée de menu «Renommer une archive»

This commit is contained in:
Djan GICQUEL 2022-04-15 17:12:56 +02:00
parent 8ff28bd0a2
commit 4c84393971
1 changed files with 12 additions and 0 deletions

View File

@ -150,6 +150,7 @@ ms\nMonter une archive\n\
$(echo $MenuDemonter)\
ss\nSupprimer une archive\n\
sss\nSupprimer des archives\n\
ra\nRenommer une archive\n\
is\nInformation archive\n\
fi\nFiltre : "$filter"\n\
--\n------------------------------------------\n\
@ -257,6 +258,17 @@ fi
zenity $W --info --text="Suppression des archives terminée.\nArchives supprimées : $(echo "$Borg_Archive" | sed s/\|/\ /g)"
fi
elif [ "$choixmenu" = "ra" ];then
# renommer une archive
BorgFilter
if [ "$Borg_Archive" = "" ];then
zenity $W --info --text "Aucune archive choisie, retour au menu"
else
borg_nouveaunom=$(zenity --entry --text "Nouveau nom" --entry-text="$Borg_Archive")
borg rename $borg_repo::"$Borg_Archive" "$borg_nouveaunom" | ZenityPulsate
fi
elif [ "$choixmenu" = "is" ];then
# Information archive