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