Skip to content
Snippets Groups Projects
Unverified Commit 0e6d460a authored by Timo Furrer's avatar Timo Furrer
Browse files

chore: recommend OpenTofu CI/CD component in script when using tofu

parent 4f066612
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,14 @@ terraform_is_at_least() { ...@@ -15,8 +15,14 @@ terraform_is_at_least() {
# if tofu is present, 1 if it's not # if tofu is present, 1 if it's not
using_open_tofu() { using_open_tofu() {
# If tofu is on the path, we're using tofu, not terraform. # If tofu is on the path, we're using tofu, not terraform.
[ "$(which tofu)" ] if [ "$(which tofu)" ]; then
return $? echo "It looks like you are using OpenTofu."
echo "Please migrate to the OpenTofu CI/CD component: https://gitlab.com/components/opentofu."
echo "The terraform-images project won't receive any OpenTofu related updates."
return 0
else
return 1
fi
} }
# Evaluate if this script is being sourced or executed directly. # Evaluate if this script is being sourced or executed directly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment