Fixed bug when asking for src and from directories
This commit is contained in:
parent
e5e729ef08
commit
3a840fb501
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,7 @@ then
|
||||||
if [ ! -d "$src" ]
|
if [ ! -d "$src" ]
|
||||||
then
|
then
|
||||||
echo -n "[WARNING] Le dossier $src n'existe pas."
|
echo -n "[WARNING] Le dossier $src n'existe pas."
|
||||||
|
src=""
|
||||||
[ ! -n "$a" ] && default_src=""
|
[ ! -n "$a" ] && default_src=""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -168,6 +169,7 @@ then
|
||||||
then
|
then
|
||||||
from="$a"
|
from="$a"
|
||||||
else
|
else
|
||||||
|
from=""
|
||||||
echo "[ERROR] $a n'est pas un dossier valide"
|
echo "[ERROR] $a n'est pas un dossier valide"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue