From 6432ba159a11d783261b3c1c2c6639e58180fc37 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Thu, 5 Aug 2021 13:57:14 +0200 Subject: [PATCH] modification des profils en .conf --- profile-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile-manager.sh b/profile-manager.sh index a7a2a4d..e41720e 100644 --- a/profile-manager.sh +++ b/profile-manager.sh @@ -54,7 +54,7 @@ vars=$(zenity --forms \ nomsauvegarde=$(echo $vars | cut -d\| -f1) profilename=$(echo $vars | cut -d\| -f2) -cat << EOF >> $HOME/.config/borg/"$profilename".txt +cat << EOF >> $HOME/.config/borg/"$profilename".conf nomsauvegarde="$nomsauvegarde" borg_repo="$borg_repo" borg_archive="\$(date +%d_%B_%Y)" @@ -66,7 +66,7 @@ EOF elif [ "$choixmenu" = "ap" ];then # Afficher les profils -fichierprofil=$(ls -1 *.txt | zenity $H $W --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --text "Choisir un profil dans la liste" --hide-header --column "profil") +fichierprofil=$(ls -1 *.conf | zenity $H $W --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --text "Choisir un profil dans la liste" --hide-header --column "profil") zenity $W $H --info --text="$(cd $dossierprofil && cat $fichierprofil)" elif [ "$choixmenu" = "" ];then