Add command line argument to specify a configuration file which would contain list of repositories to download in parallel.
My use case is to bootstrap environment using following algorithm.
download a bunch of tools and verify sha256 of each downloaded artifact.
Then do chmod +x for each one of them.
Finally only iff sha256 is verified move the file to its final destination
Bonus feature: Ability to specify dependencies between the tools to establish right installation order.
Describe alternatives you've considered
use jq to get list of targets and sha and combine it with shell scripts involving sha256,chmod,curl
put urls and SHAs into a bash array and iterate over in a function
None of the above solutions would be portable enough, cannot provide parallel downloads and decent error handling.
Additional context
There are similar tools. However there is none which do both batch artifact download and verification:
Describe the solution you'd like
Add command line argument to specify a configuration file which would contain list of repositories to download in parallel. My use case is to bootstrap environment using following algorithm.
chmod +x
for each one of them.Bonus feature: Ability to specify dependencies between the tools to establish right installation order.
Describe alternatives you've considered
jq
to get list of targets and sha and combine it with shell scripts involving sha256,chmod,curlNone of the above solutions would be portable enough, cannot provide parallel downloads and decent error handling.
Additional context
There are similar tools. However there is none which do both batch artifact download and verification:
Less relevant tools