]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
fixed link problem in download script
authorhackbard <hackbard>
Wed, 25 May 2005 12:33:43 +0000 (12:33 +0000)
committerhackbard <hackbard>
Wed, 25 May 2005 12:33:43 +0000 (12:33 +0000)
doc/CHANGELOG
scripts/Download

index 967dd9aeae676b42a90301084decf5e188cb731b..62973d678c1aa82fd57538bf9f94966daf7a3508 100644 (file)
@@ -1,3 +1,7 @@
+*) 2005-05-25
+
+- fixed link bug in download script
+
 *) 2005-05-14
 
 - some more adaptions
index 830ebd2bf166ab1f719b4bd5e8de1cdfdd2339e8..cd73b12def443f25645149c05c1d3c6574fd0999 100755 (executable)
@@ -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