Skip to content

Commit c96e3b5

Browse files
Copilotmmitche
andauthored
Fix curl not following redirects when downloading product version files (#671)
* Initial plan * Fix curl not following redirects when downloading product version files Co-authored-by: mmitche <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: mmitche <[email protected]>
1 parent fd5f80b commit c96e3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ get_specific_product_version() {
783783

784784
if machine_has "curl"
785785
then
786-
if ! specific_product_version=$(curl -s --fail "${download_link}${feed_credential}" 2>&1); then
786+
if ! specific_product_version=$(curl -sL --fail "${download_link}${feed_credential}" 2>&1); then
787787
continue
788788
else
789789
echo "${specific_product_version//[$'\t\r\n']}"

0 commit comments

Comments
 (0)