From: hackbard Date: Wed, 25 May 2005 12:33:43 +0000 (+0000) Subject: fixed link problem in download script X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05262675ef5ddecf1cc186db07d55b5511162d6;p=hdw-linux%2Fhdw-linux.git fixed link problem in download script --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 967dd9a..62973d6 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,3 +1,7 @@ +*) 2005-05-25 + +- fixed link bug in download script + *) 2005-05-14 - some more adaptions 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