#!/usr/bin/env bash

check_version() {
  v="${1}"
  [ -n "$(terraform --version | grep -E "^Terraform v${v}(-dev)?$")" ]
}

cleanup() {
  rm -rf ./versions
  rm -rf ./.terraform-version
  rm -rf ./min_required.tf
}

#!/usr/bin/env bash

check_version() {
  v="${1}"
  [ -n "$(terraform --version | grep -E "^Terraform v${v}((-dev)|( \([a-f0-9]+\)))?$")" ]
}

cleanup() {
  rm -rf ./versions
  rm -rf ./.terraform-version
  rm -rf ./min_required.tf
}

Fix test helper to support hash-labelled version strings
Fix test helper to support hash-labelled version strings
