From b2c15acd35f55edc461c8620cdd1900d86c957b9 Mon Sep 17 00:00:00 2001 From: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:12:36 +0100 Subject: [PATCH] Fallback space handling Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> --- static/install-opentofu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/install-opentofu.sh b/static/install-opentofu.sh index 0279518..3f45231 100755 --- a/static/install-opentofu.sh +++ b/static/install-opentofu.sh @@ -740,7 +740,7 @@ install_standalone() { if [ "${OPENTOFU_VERSION}" = "latest" ]; then log_info "Determining latest OpenTofu version..." - OPENTOFU_VERSION=$(download_file "https://api.github.com/repos/opentofu/opentofu/releases/latest" - | grep "tag_name" | sed -e 's/.*tag_name":"v//' -e 's/".*//') + OPENTOFU_VERSION=$(download_file "https://api.github.com/repos/opentofu/opentofu/releases/latest" - | grep "tag_name" | sed -e 's/.*tag_name":"v//' -e 's/.*tag_name": "v//' -e 's/".*//') if [ -z "${OPENTOFU_VERSION}" ]; then log_error "Failed to obtain the latest release from the GitHub API. Try passing --opentofu-version to specify a version." return "${TOFU_INSTALL_EXIT_CODE_INSTALL_FAILED}"