X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=scripts%2FDownload;h=5001ce6ab354659a220d195733b4956b5e1501d2;hp=cd73b12def443f25645149c05c1d3c6574fd0999;hb=78018a798ab055835e4e08c65ce8d3b4ad994ee1;hpb=d63fa093f9748fd16fedaaf99b27c2d74b17bfb8 diff --git a/scripts/Download b/scripts/Download index cd73b12..5001ce6 100755 --- a/scripts/Download +++ b/scripts/Download @@ -218,6 +218,9 @@ for dir in `ls -A --ignore="CVS" ./download`; do # possibly the package exists mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg tolf="`find ../.. -name $file | tail -1`" + if [ -n "$tolf" ] ; then + [ -d $tolf ] && tolf="" + fi if [ -f ./$file ] ; then echo "$file allready downloaded." echo