@@ -559,7 +559,7 @@ function common::terraform_init {
559559 # More details - https://github.com/opentofu/opentofu/pull/1878
560560 # For that reason, we switch to `tofu init` when possible
561561 local tf_init_path=$tf_path
562- if [[ " $( $tf_path -version | head -1 | grep -o ' ^Terraform' ) " == " Terraform" ]] &&
562+ if [[ " $( $tf_path -- version | head -1 | grep -o ' ^Terraform' ) " == " Terraform" ]] &&
563563 common::tofu_version_ge_1.10; then
564564 tf_init_path=$( command -v tofu)
565565 common::colorify " green" " Using OpenTofu binary ($tf_init_path ) for Terraform init operations, as it supports concurrent provider initialization."
@@ -622,8 +622,8 @@ function common::export_provided_env_vars {
622622# ######################################################################
623623# Check if the installed Tofu version is >=1.10.0 or not
624624#
625- # This function helps to determine if tofu version allow to use
626- # parallelism based on Tofu version
625+ # This function determines whether the tofu version allows using
626+ # parallelism.
627627#
628628# Returns:
629629# - 0 if version >= 1.10.0
@@ -641,8 +641,7 @@ function common::tofu_version_ge_1.10 {
641641
642642 local major minor
643643 IFS=' .' read -r major minor <<< " $tofu_version"
644-
645- # New functional added in v1.10.0 (June 2025)
644+ # New functionality was added in v1.10.0 (June 2025)
646645 if [[ $major -gt 1 || ($major -eq 1 && $minor -ge 10) ]]; then
647646 return 0
648647 fi
0 commit comments