Fixed bug when asking for src and from directories

This commit is contained in:
Benjamin Renard 2011-09-29 10:08:27 +02:00
parent e5e729ef08
commit 3a840fb501

View file

@ -151,6 +151,7 @@ then
if [ ! -d "$src" ]
then
echo -n "[WARNING] Le dossier $src n'existe pas."
src=""
[ ! -n "$a" ] && default_src=""
fi
done
@ -168,6 +169,7 @@ then
then
from="$a"
else
from=""
echo "[ERROR] $a n'est pas un dossier valide"
fi
else