diff --git a/libexec/tgenv-install b/libexec/tgenv-install index 89908c2..d548b50 100755 --- a/libexec/tgenv-install +++ b/libexec/tgenv-install @@ -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" diff --git a/libexec/tgenv-list-remote b/libexec/tgenv-list-remote index beea770..5bfb1ae 100755 --- a/libexec/tgenv-list-remote +++ b/libexec/tgenv-list-remote @@ -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