boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
678 stars 46 forks source link

terraspace setup check - Terraform not installed. Unable to detect a terraform command #226

Open kernelport opened 2 years ago

kernelport commented 2 years ago

Under Linux the "terraspace setup check" fails if you have LANGUAGE != en_US.UTF-8. For example if LANGUAGE = de_DE.UTF-8: The terraform_bin function in lib/terraspace/cli/setup/check.rb greps the output of the cmdline command "type terraform 2>&1" and split the output with the seperator "is " In german this does not work because the split seperator is "ist" and not "is". It is better to check "which terraform" instead of "type terraform". Than we do not need the split and it works under all LANGUAGE environments