Skip to content

Commit

Permalink
chore: check if latest is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Feb 11, 2024
1 parent 9ed6492 commit 160ba34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
Short: "Installs a given Terraform version",
Example: installExample,
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
if !latest && len(args) != 1 {
fmt.Println("error: provide a Terraform version to install")
fmt.Println("See 'tfversion install -h' for help and examples")
os.Exit(1)
Expand Down

0 comments on commit 160ba34

Please sign in to comment.