Skip to content

Commit

Permalink
Merge pull request #40 from opentofu/fix-fedora
Browse files Browse the repository at this point in the history
Fixes #39: Installation broken on Fedora
  • Loading branch information
abstractionfactory authored Nov 5, 2024
2 parents 3bf57d8 + b2c15ac commit 61965ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion static/install-opentofu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
5 changes: 2 additions & 3 deletions tests/linux/in-container/methods/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ 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
echo "alpine - brew not supported"
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
Expand Down

0 comments on commit 61965ef

Please sign in to comment.