Fixed bug when asking for src and from directories
Benjamin Renard

Benjamin Renard commited on 2011-09-29 08:08:27
Showing 1 changed files, with 2 additions and 0 deletions.

... ...
@@ -151,6 +151,7 @@ then
151 151
 			if [ ! -d "$src" ]
152 152
 			then
153 153
 				echo -n "[WARNING] Le dossier $src n'existe pas."
154
+				src=""
154 155
 				[ ! -n "$a" ] && default_src=""
155 156
 			fi
156 157
 		done
... ...
@@ -168,6 +169,7 @@ then
168 169
 				then
169 170
 					from="$a"
170 171
 				else
172
+					from=""
171 173
 					echo "[ERROR] $a n'est pas un dossier valide"
172 174
 				fi
173 175
 			else
174 176