@@ -66,19 +66,19 @@ var shellCommand = &cli.Command{
6666 signal .Stop (sigch )
6767 close (sigch )
6868 fd := int (os .Stdin .Fd ())
69- term .Restore (fd , state )
69+ _ = term .Restore (fd , state )
7070 }()
7171 kcpath := defaults .PathToConfig ("kubeconfig" )
7272 config := fmt .Sprintf ("export KUBECONFIG=%q\n " , kcpath )
73- shellpty .WriteString (config )
74- io .CopyN (io .Discard , shellpty , int64 (len (config )+ 1 ))
73+ _ , _ = shellpty .WriteString (config )
74+ _ , _ = io .CopyN (io .Discard , shellpty , int64 (len (config )+ 1 ))
7575 bindir := defaults .HelmVMBinsSubDir ()
7676 config = fmt .Sprintf ("export PATH=\" $PATH:%s\" \n " , bindir )
77- shellpty .WriteString (config )
78- io .CopyN (io .Discard , shellpty , int64 (len (config )+ 1 ))
79- go func () { io .Copy (shellpty , os .Stdin ) }()
80- go func () { io .Copy (os .Stdout , shellpty ) }()
81- shell .Wait ()
77+ _ , _ = shellpty .WriteString (config )
78+ _ , _ = io .CopyN (io .Discard , shellpty , int64 (len (config )+ 1 ))
79+ go func () { _ , _ = io .Copy (shellpty , os .Stdin ) }()
80+ go func () { _ , _ = io .Copy (os .Stdout , shellpty ) }()
81+ _ = shell .Wait ()
8282 return nil
8383 },
8484}
0 commit comments