Skip to content

Commit

Permalink
fix: locating latest release in elan-init.sh
Browse files Browse the repository at this point in the history
Fixes #73
  • Loading branch information
Kha committed May 3, 2022
1 parent 7d84490 commit c586599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elan-init.sh
Expand Up @@ -98,7 +98,7 @@ main() {
fi

ensure mkdir -p "$_dir"
local _latest=$(ensure curl -sSf "$ELAN_UPDATE_ROOT/latest" | cut -d'"' -f2 | awk -F/ '{print $NF}')
local _latest=$(ensure curl -sSfL -o /dev/null -w %{url_effective} "$ELAN_UPDATE_ROOT/latest" | cut -d'"' -f2 | awk -F/ '{print $NF}')

case "$_arch" in
*windows*)
Expand Down

0 comments on commit c586599

Please sign in to comment.