suppression du message vide si on quitte sans séléctionner de profil

dans «afficher profil»
This commit is contained in:
Djan GICQUEL 2022-07-12 21:45:33 +02:00
parent c15911e9d2
commit 2b35ce5797
1 changed files with 2 additions and 0 deletions

View File

@ -128,7 +128,9 @@ zenity $W --info --text "Le dépôt à bien été ajouté.\nLancez «Borg Zenity
elif [ "$choixmenu" = "ap" ];then
fichierprofil=$(ls -1 *.conf | zenity $H $W --window-icon=borg --list --title "Liste des profils" --text "Choisir un profil dans la liste" --hide-header --column "profil")
if [ "$fichierprofil" != "" ];then
zenity $W $H --info --text="<tt>$(cd "$dossierprofil" && cat "$fichierprofil")</tt>"
fi
elif [ "$choixmenu" = "" ];then
exit