Skip to content

Commit

Permalink
bf: add --location flag to fs_install_mcr to redirect download src
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoopes committed Nov 25, 2020
1 parent 7eb0195 commit 6e7120f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fs_install_mcr
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ fi

# download the os-specific installer
if [[ "$MCR_VER" =~ R2012a|R2012b|R2013a ]]; then
curl https://ssd.mathworks.com/supportfiles/MCR_Runtime/$MCR_VER/MCR_${MCR_VER}_${OS_TAG}_installer.zip -o installer.zip
curl --location https://ssd.mathworks.com/supportfiles/MCR_Runtime/$MCR_VER/MCR_${MCR_VER}_${OS_TAG}_installer.zip -o installer.zip
else
curl https://ssd.mathworks.com/supportfiles/downloads/$MCR_VER/deployment_files/$MCR_VER/installers/$OS_TAG/MCR_${MCR_VER}_${OS_TAG}_installer.zip -o installer.zip
curl --location https://ssd.mathworks.com/supportfiles/downloads/$MCR_VER/deployment_files/$MCR_VER/installers/$OS_TAG/MCR_${MCR_VER}_${OS_TAG}_installer.zip -o installer.zip
fi
unzip installer.zip

Expand Down

0 comments on commit 6e7120f

Please sign in to comment.