packages updates = helper improvements
[hdw-linux/hdw-linux.git] / scripts / Download
index cd73b12..5001ce6 100755 (executable)
@@ -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