Skip to content

Commit

Permalink
Fix a bug when running Bazelisk without any argument (bazelbuild#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored and philwo committed Feb 13, 2019
1 parent cd5df97 commit 58df4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazelisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func main() {
args := os.Args[1:]

// --strict and --migrate must be the first argument.
if len(args) > 0 && args[0] == "--strict" || args[0] == "--migrate" {
if len(args) > 0 && (args[0] == "--strict" || args[0] == "--migrate") {
cmd := args[0]
newFlags, err := getIncompatibleFlags(bazeliskHome, resolvedBazelVersion)
if err != nil {
Expand Down

0 comments on commit 58df4b3

Please sign in to comment.