Aborting and resuming the download script
Created by: 1kastner
The download and untar script checks whether a directory already exists and in that case it skips it. So generally speaking the script is capable of being aborted and resumed at a later point. Only one problem exists: if you start to download the same file the second time, wget adds ".[number]" at the end of the file, so "file.tgz.1" for the second attempt and so on. That means, the script in its current implementation processes the first download attempt and hence the broken file. One fix which is customized for my personal needs can be found at https://gist.github.com/1kastner/46a6e8510c47901cb55d - I am not that well in shell scripting. It should take the file name "name.tgz.[HIGHEST_NUMBER]" instead of the first download attempt. I hope I could make my point clear.