feat: mac install support
This commit is contained in:
15
script/install.d/25-terraform.sh
Normal file
15
script/install.d/25-terraform.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# Install terraform.
|
||||
#
|
||||
|
||||
if ! command -v "terraform" &>/dev/null; then
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
sudo apt-get install -qq terraform
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
brew tap hashicorp/tap
|
||||
brew install hashicorp/tap/terraform
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user