I am using wget in my scripts to download the source packages before I build. Each package has a list of mirrors, the scripts try with wget --spider to see if the file is available.
This is working on all packages except git. Running
Code:
wget --spider http://git-core.googlecode.com/files/git-1.8.1.5.tar.gz
reports broken link, but running
Code:
wget http://git-core.googlecode.com/files/git-1.8.1.5.tar.gz
downloads the file. Anyone knows why?
EDIT: I am using wget --spider before the actual download because adding lots of switches to the actual download is destroying my % parsing
Code:
wget --progress=dot $url | grep --line-buffered "%" | sed -u -e "s,'.,,g' | awk '{ printf("\b\b\b\b%4s", $2)}'