X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=scripts%2FDownload;h=5001ce6ab354659a220d195733b4956b5e1501d2;hb=5c31fce36bb2f759bb112595573c07b5f027ba3e;hp=cd73b12def443f25645149c05c1d3c6574fd0999;hpb=b05262675ef5ddecf1cc186db07d55b5511162d6;p=hdw-linux%2Fhdw-linux.git 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