diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-06-30 15:57:46 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-06-30 15:57:46 +0200 |
commit | 0ff8e13c1cb603109204f88116746067f0344f77 (patch) | |
tree | ede81b3d24a2d424e24a91454a92d75627eb028e /commands/mod.go | |
parent | ffd37d4f757c8448afd49823d2252532be7f7e00 (diff) | |
download | hugo-0ff8e13c1cb603109204f88116746067f0344f77.tar.gz hugo-0ff8e13c1cb603109204f88116746067f0344f77.zip |
commands: Fix index out of range in hugo mod get
Fixes #11190
Diffstat (limited to 'commands/mod.go')
-rw-r--r-- | commands/mod.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mod.go b/commands/mod.go index 55b8a8e08..764e12d41 100644 --- a/commands/mod.go +++ b/commands/mod.go @@ -224,7 +224,7 @@ Run "go help get" for more information. All flags available for "go get" is also run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error { // We currently just pass on the flags we get to Go and // need to do the flag handling manually. - if len(args) == 1 && args[0] == "-h" || args[0] == "--help" { + if len(args) == 1 && (args[0] == "-h" || args[0] == "--help") { return errHelp } |