Closed alanpearce closed 10 years ago
wget
isn't installed by default on Linux as well (minimal installation), so downloading may fails as well, but I would prefer to have one downloader and make it as required dependencies for vbkick. I would like to keep code as simple as possible. The question is curl
vs wget
. I think curl is much more portable (available for Linux, OSX, FreeBSD). It may be a good idea to add dependencies check in "Main" section.
That works too. I agree that curl
is more widely-available by default, so it would be a good choice for a downloader. Perhaps it should be checked for at the start of the script and exit with a message if it's not found, to make it clearer in the unlikely event that it's not available?
Yes check is good idea, but for all dependencies.
Do you want work on this issue or do you want me to do this ?
Sure, I'll go for it. :)
wget
isn't installed by default on FreeBSD or Mac OSX, so downloading fails. vbkick should be able to switch between downloaders depending upon the OS and what's available. OSX ships withcurl
and FreeBSD ships withfetch
.