From 2b35ce5797b9f3be516b6ee3b82161162828424d Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Tue, 12 Jul 2022 21:45:33 +0200 Subject: [PATCH] =?UTF-8?q?suppression=20du=20message=20vide=20si=20on=20q?= =?UTF-8?q?uitte=20sans=20s=C3=A9l=C3=A9ctionner=20de=20profil=20dans=20?= =?UTF-8?q?=C2=ABafficher=20profil=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profile-manager.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profile-manager.sh b/profile-manager.sh index 5626124..a67eb24 100755 --- a/profile-manager.sh +++ b/profile-manager.sh @@ -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="$(cd "$dossierprofil" && cat "$fichierprofil")" +fi elif [ "$choixmenu" = "" ];then exit