X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=scripts%2FDownload;h=cd73b12def443f25645149c05c1d3c6574fd0999;hp=830ebd2bf166ab1f719b4bd5e8de1cdfdd2339e8;hb=b05262675ef5ddecf1cc186db07d55b5511162d6;hpb=d70e3316503657428c91b1de1e39b84ce16ad4b0 diff --git a/scripts/Download b/scripts/Download index 830ebd2..cd73b12 100755 --- a/scripts/Download +++ b/scripts/Download @@ -217,11 +217,11 @@ for dir in `ls -A --ignore="CVS" ./download`; do echo # possibly the package exists mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg + tolf="`find ../.. -name $file | tail -1`" if [ -f ./$file ] ; then echo "$file allready downloaded." echo - elif [ -n "`find ../../.. -name $file`" ] ; then - tolf="`echo $bar | awk '{ print $1 }'`" + elif [ -n "$tolf" ] ; then ln -svf $tolf . else