Merge pull request #1367 from cli/fix-internal-alias
fix variable shadowing
This commit is contained in:
commit
4b87f5b18a
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ func main() {
|
|||
cmd, _, err := command.RootCmd.Traverse(expandedArgs)
|
||||
if err != nil || cmd == command.RootCmd {
|
||||
originalArgs := expandedArgs
|
||||
expandedArgs, isShell, err := command.ExpandAlias(os.Args)
|
||||
isShell := false
|
||||
expandedArgs, isShell, err = command.ExpandAlias(os.Args)
|
||||
if err != nil {
|
||||
fmt.Fprintf(stderr, "failed to process aliases: %s\n", err)
|
||||
os.Exit(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue