Fix an error when a folder is missing in the slackware mirror (as /testing).

This commit is contained in:
Matteo Rossini 2013-05-03 17:41:27 +02:00
parent ca37955286
commit 0c62384c2f

View file

@ -84,7 +84,11 @@ if [ "$SLACKPKGPLUS" = "on" ];then
if echo $URLFILE | grep -q "^file://" ; then
URLFILE=${URLFILE:6}
cp -v $URLFILE $2
if [ -f $URLFILE ];then
cp -v $URLFILE $2
else
return 1
fi
else
$DOWNLOADER $2 $URLFILE
fi