Skip to content

Commit

Permalink
added exit code 1 when version format is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed May 5, 2021
1 parent ab7a67e commit 6bc7a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ func installVersion(arg string, custBinPath *string) {
printInvalidTFVersion()
fmt.Println("Args must be a valid terraform version")
usageMessage()
os.Exit(1)
}
}

Expand Down

0 comments on commit 6bc7a1d

Please sign in to comment.