diff --git a/borg-gui.sh b/borg-gui.sh index 863b441..1b1ecbc 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -234,6 +234,7 @@ fi sleep 2 | ZenityPulsate rmdir "$ptnmontage" | ZenityPulsate fi + zenity --notification $iconborg --text="Démontage de $ptnmontage" elif [ "$choixmenu" = "dmt" ];then # Démonter toutes les archives @@ -271,10 +272,16 @@ fi BorgFilter if [ ! "$Borg_Archive" = "" ];then - borg_nouveaunom=$(zenity $W --entry --text "Nouveau nom" --entry-text="$Borg_Archive") - borg rename "$borg_repo"::"$Borg_Archive" "$borg_nouveaunom" | ZenityPulsate + borg_nouveaunom=$(zenity $W --entry --text "Nouveau nom" --entry-text="$Borg_Archive") + 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 - elif [ "$choixmenu" = "is" ];then # Information archive