correction d'une typo sur le création du dépôt

This commit is contained in:
Djan GICQUEL 2022-07-04 11:01:05 +02:00
parent 3ac6e8b438
commit 145894091a
1 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ W="--width=600"
H="--height=500"
ZenityPulsate () {
zenity $W --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close
zenity $W --window-icon=borg --progress --pulsate --auto-close
}
TestBorgRepo () {
@ -66,17 +66,16 @@ Si vous ne chiffrez pas le dépôt, les données qu'il contient seront librement
"
if [ "$?" = "0" ];then
borg init "$borg_repo" | ZenityPulsate
borg init --encryption=keyfile "$borg_repo" | ZenityPulsate
zenity $W --info --text "Un nouveau dépôt chiffré a été généré dans <tt>$borg_repo</tt>"
repo_status="chiffré"
elif [ "$?" = "1" ];then
borg init --encryption none "$borg_repo" | ZenityPulsate
borg init --encryption=none "$borg_repo" | ZenityPulsate
zenity $W --info --text "Un nouveau dépôt en clair a été généré dans <tt>$borg_repo</tt>"
repo_status="non chiffré"
fi
borg_dir=$(zenity --title "Dossier à sauvegarder" --file-selection --directory)
profilename=$(zenity --entry --title "Nom de profil" --text "Nom de profil (pas d'espace ni caractères spéciaux)")
nomsauvegarde=$(echo "$profilename")