Skip to content

Commit 9a5db45

Browse files
author
Troels Liebe Bentsen
authored
Merge pull request #14 from connectedcars/fix-script-calls
setup.go: set args to empty instead of the Command name if no extra args
2 parents adb9be0 + d5e7f0d commit 9a5db45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/authwrapper/setup.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ func parseEnvironment() (*Config, error) {
9595
config.Command = args[0]
9696
if len(config.Args) > 1 {
9797
config.Args = args[1:]
98+
} else {
99+
config.Args = []string{}
98100
}
99101
}
100102
}

0 commit comments

Comments
 (0)