ivandavidov / minimal-linux-script

One script which generates live Linux ISO image with minimal effort. Based on the first published version of Minimal Linux Live: http://github.com/ivandavidov/minimal
GNU General Public License v3.0
224 stars 70 forks source link

Code to reuse downloaded tarballs #4

Closed antoniusmisfit closed 6 years ago

antoniusmisfit commented 6 years ago

Added code to reuse already downloaded tarballs, saving time on recompiles.

ivandavidov commented 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.

antoniusmisfit commented 6 years ago

Ah, I see. I'll test the -c approach on my own Linux project. Thanks for the tip!

ivandavidov commented 6 years ago

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.

antoniusmisfit commented 6 years ago

Yup, the -c option works like a charm.