Skip to content

Commit

Permalink
added logic fmt.Printf("Terraform version environment variable: %s\n"…
Browse files Browse the repository at this point in the history
…, tfversion)
  • Loading branch information
warrensbox committed Feb 4, 2021
1 parent bc3a080 commit 1eeb581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func main() {
installTFProvidedModule(dir, &binPath)
case checkEnvExist() && len(args) == 0 && version == "":
tfversion := os.Getenv("TFVERSION")
fmt.Printf("Reading environment variable: %s\n", tfversion)
fmt.Printf("Terraform version environment variable: %s\n", tfversion)
installVersion(tfversion, custBinPath)
case version != "":
installVersion(version, &binPath)
Expand Down Expand Up @@ -178,10 +178,10 @@ func main() {
case checkTFModuleFileExist(dir) && len(args) == 0:
installTFProvidedModule(dir, custBinPath)

/* if TF environment variable is set */
/* if Terraform Version environment variable is set */
case checkEnvExist() && len(args) == 0:
tfversion := os.Getenv("TFVERSION")
fmt.Printf("Reading environment variable: %s\n", tfversion)
fmt.Printf("Terraform version environment variable: %s\n", tfversion)
installVersion(tfversion, custBinPath)

// if no arg is provided
Expand Down

0 comments on commit 1eeb581

Please sign in to comment.