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" ]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue