modification des profils en .conf

This commit is contained in:
Djan GICQUEL 2021-08-05 13:57:14 +02:00
parent 43498e2ed2
commit 6432ba159a
1 changed files with 2 additions and 2 deletions

View File

@ -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="<tt>$(cd $dossierprofil && cat $fichierprofil)</tt>"
elif [ "$choixmenu" = "" ];then