From a460475c813f090c7861eb6a5a6d50067f811dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nil=20G=C3=A0llego?= <73447234+nilgaar@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:35:49 +0200 Subject: [PATCH] [Documentation] Add script to verify OpenTofu installation (#1706) Signed-off-by: Nil --- website/docs/intro/install/examples/verify-installation.sh | 1 + website/docs/intro/install/homebrew.mdx | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 website/docs/intro/install/examples/verify-installation.sh diff --git a/website/docs/intro/install/examples/verify-installation.sh b/website/docs/intro/install/examples/verify-installation.sh new file mode 100644 index 0000000000..356a0a3398 --- /dev/null +++ b/website/docs/intro/install/examples/verify-installation.sh @@ -0,0 +1 @@ +tofu -version \ No newline at end of file diff --git a/website/docs/intro/install/homebrew.mdx b/website/docs/intro/install/homebrew.mdx index 05afb9719d..78cf2f2c14 100644 --- a/website/docs/intro/install/homebrew.mdx +++ b/website/docs/intro/install/homebrew.mdx @@ -7,9 +7,14 @@ description: |- import CodeBlock from '@theme/CodeBlock'; import BrewScript from '!!raw-loader!./examples/brew-install.sh' +import ValidateInstall from '!!raw-loader!./examples/verify-installation.sh' # Installing OpenTofu via Homebrew You can use OpenTofu as a [standalone binary](standalone.mdx) or you can install it using [Homebrew](https://formulae.brew.sh/formula/opentofu). OpenTofu is available in the Homebrew Core repository, so you can install it by running: {BrewScript} + +Validate the installation by running: + +{ValidateInstall}