hensou / asdf-dotnet

dotnet (.net) plugin for asdf version manager
MIT License
42 stars 10 forks source link

Include curl options when using curl in download function #28

Closed ssb-incomas closed 6 months ago

ssb-incomas commented 6 months ago

Hi,

When using this plugin to install dotnet I ran into an issue where it didn't find any releases. I discovered that in order to access the GitHub url in the RELEASES_URI variable it requires the -L option for curl in order to follow redirects.

I could simply have added the -L flag but when reading the script I noticed the curl_opts variable already existed so I decided to use that for the release list download.

hensou commented 6 months ago

Thanks a lot for your contribution @ssb-incomas , somehow I missed that curl_opts was already defined there, so it makes total sense to use it instead.