From fe9ebee8856fef6ceb5b7e933f30fbec961391bd Mon Sep 17 00:00:00 2001
From: Djan GICQUEL <>
Date: Fri, 29 Apr 2022 19:45:49 +0200
Subject: [PATCH] =?UTF-8?q?=C3=A9chappement=20des=20variables?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
borg-gui.sh | 4 ++--
profile-manager.sh | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/borg-gui.sh b/borg-gui.sh
index 57f78b8..8433465 100755
--- a/borg-gui.sh
+++ b/borg-gui.sh
@@ -82,7 +82,7 @@ if [ ! $1 = "" ]; then
fichierprofil="$1"
. "$1"
else
- cd $dossierprofil
+ cd "$dossierprofil"
fichierprofil=$(ls -1 *.conf | cut -d. -f1 | \
zenity $W $H $iconborg --list \
--title "Liste des profils" \
@@ -289,7 +289,7 @@ fi
elif [ "$choixmenu" = "ap" ];then
# Afficher le profil
- zenity $W $H --info --text="$(cd $dossierprofil && cat "$fichierprofil".conf)"
+ zenity $W $H --info --text="$(cd "$dossierprofil" && cat "$fichierprofil".conf)"
elif [ "$choixmenu" = "qu" ];then
diff --git a/profile-manager.sh b/profile-manager.sh
index 5c4f5cd..884fad8 100755
--- a/profile-manager.sh
+++ b/profile-manager.sh
@@ -84,8 +84,8 @@ vars=$(zenity --forms \
nomsauvegarde=$(echo $vars | cut -d\| -f1)
profilename=$(echo $vars | cut -d\| -f2)
-if [ "$nomsauvegarde" = "" ];then;zenity $W --error --text "Pas de nom de sauvegarde";exit;fi
-if [ "$profilename" = "" ];then;zenity $W --error --text "Pas de nom de sauvegarde";exit;fi
+if [ "$nomsauvegarde" = "" ];then zenity $W --error --text "Pas de nom de sauvegarde";exit;fi
+if [ "$profilename" = "" ];then zenity $W --error --text "Pas de nom de sauvegarde";exit;fi
cat << EOF >> "$dossierprofil""$profilename".conf
nomsauvegarde="$nomsauvegarde"
@@ -129,7 +129,7 @@ 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=$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)"
+zenity $W $H --info --text="$(cd "$dossierprofil" && cat "$fichierprofil")"
elif [ "$choixmenu" = "" ];then
exit