Closed antoniusmisfit closed 6 years ago
Better way is to utilize the -c
option. You can see how it works here.
I'll decline the pull request because the whole purpose of this project (and this script) is to keep the whole process as simple and as linear as possible. Intoducing if
statements doesn't make the script simpler.
Ah, I see. I'll test the -c approach on my own Linux project. Thanks for the tip!
When you use wget
with -c
, wget checks whether the downloaded file size matches the file size reported by the server. If both file sizes match, this means there is no need to re-download the file. If the downloaded file size is smaller, then wget
is smart enough to continue from where it last stopped.
Yup, the -c option works like a charm.
Added code to reuse already downloaded tarballs, saving time on recompiles.