Skip to content

Commit

Permalink
Fixed remote list and install download
Browse files Browse the repository at this point in the history
Fixed sort order when generating a remote list.
Added option to curl to follow redirects for file download during install.
  • Loading branch information
tdorrodt committed May 24, 2019
1 parent 09d3495 commit 40bc24e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libexec/tgenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mkdir -p "${dst_path}" || error_and_die "Failed to make directory ${dst_path}"
trap "rm -rf ${dst_path}" EXIT;

info "Downloading release tarball from ${version_url}/${tarball_name}"
curlw -# -f -o "${dst_path}/terragrunt" "${version_url}/${tarball_name}" || error_and_die "Tarball download failed"
curlw -# -f --location-trusted -o "${dst_path}/terragrunt" "${version_url}/${tarball_name}" || error_and_die "Tarball download failed"

chmod +x "${dst_path}/terragrunt" || error_and_die "Change rights failed"

Expand Down
2 changes: 1 addition & 1 deletion libexec/tgenv-list-remote
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [ ${#} -ne 0 ];then
exit 1
fi

curlw -sf https://api.github.com/repos/gruntwork-io/terragrunt/git/refs/tags | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta|alpha)[0-9]+)?" | uniq
curlw -sf https://api.github.com/repos/gruntwork-io/terragrunt/git/refs/tags | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta|alpha)[0-9]+)?" | uniq | sort -t . -k 1nr,1 -k 2nr,2 -k 3nr,3

0 comments on commit 40bc24e

Please sign in to comment.