renommer : notification + gestion annulation
This commit is contained in:
parent
04136dc7ef
commit
f7d107eb96
13
borg-gui.sh
13
borg-gui.sh
@ -234,6 +234,7 @@ fi
|
|||||||
sleep 2 | ZenityPulsate
|
sleep 2 | ZenityPulsate
|
||||||
rmdir "$ptnmontage" | ZenityPulsate
|
rmdir "$ptnmontage" | ZenityPulsate
|
||||||
fi
|
fi
|
||||||
|
zenity --notification $iconborg --text="Démontage de $ptnmontage"
|
||||||
|
|
||||||
elif [ "$choixmenu" = "dmt" ];then
|
elif [ "$choixmenu" = "dmt" ];then
|
||||||
# Démonter toutes les archives
|
# Démonter toutes les archives
|
||||||
@ -271,10 +272,16 @@ fi
|
|||||||
BorgFilter
|
BorgFilter
|
||||||
|
|
||||||
if [ ! "$Borg_Archive" = "" ];then
|
if [ ! "$Borg_Archive" = "" ];then
|
||||||
borg_nouveaunom=$(zenity $W --entry --text "Nouveau nom" --entry-text="$Borg_Archive")
|
borg_nouveaunom=$(zenity $W --entry --text "Nouveau nom" --entry-text="$Borg_Archive")
|
||||||
borg rename "$borg_repo"::"$Borg_Archive" "$borg_nouveaunom" | ZenityPulsate
|
if [ "$borg_nouveaunom" = "$Borg_Archive" ];then
|
||||||
|
zenity --notification $iconborg --text="Renommage annulé"
|
||||||
|
elif [ "$borg_nouveaunom" = "" ];then
|
||||||
|
zenity --notification $iconborg --text="Renommage annulé"
|
||||||
|
elif [ "$Borg_Archive" != "$borg_nouveaunom" ];then
|
||||||
|
borg rename "$borg_repo"::"$Borg_Archive" "$borg_nouveaunom" | ZenityPulsate
|
||||||
|
zenity --notification $iconborg --text="Renommage terminé\n"$Borg_Archive" -> "$borg_nouveaunom""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
elif [ "$choixmenu" = "is" ];then
|
elif [ "$choixmenu" = "is" ];then
|
||||||
# Information archive
|
# Information archive
|
||||||
|
Loading…
Reference in New Issue
Block a user