diff --git a/static/install-opentofu.sh b/static/install-opentofu.sh index 9c851ef..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}" diff --git a/tests/linux/in-container/methods/brew.sh b/tests/linux/in-container/methods/brew.sh index dbe6063..4e06b9e 100755 --- a/tests/linux/in-container/methods/brew.sh +++ b/tests/linux/in-container/methods/brew.sh @@ -5,7 +5,7 @@ case "$DISTRO" in apt-get install -y git build-essential gcc procps curl file bash ;; ubuntu) - apt-get install -y git build-essential gcc procps curl file bash + apt-get install -y git build-essential gcc procps curl file bash ;; alpine) #apk add git gcc bash curl ruby gcompat @@ -13,8 +13,7 @@ case "$DISTRO" in exit 0 ;; fedora | rocky) - yum install -y procps-ng curl file git gcc bash - yum groupinstall -y 'Development Tools' + dnf install -y procps-ng curl file git gcc bash ;; opensuse) zypper install -y file git gcc tar bash ruby gzip