1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 18:20:32 +00:00

Update codegangsta/cli action return signature

This commit is contained in:
Josh Curl
2016-05-16 20:36:08 -07:00
parent b2ab4d0c38
commit c18cd26e78
10 changed files with 63 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/rancher/os/util"
)
func envAction(c *cli.Context) {
func envAction(c *cli.Context) error {
cfg, err := config.LoadConfig()
if err != nil {
log.Fatal(err)
@@ -19,7 +19,7 @@ func envAction(c *cli.Context) {
args := c.Args()
if len(args) == 0 {
return
return nil
}
osEnv := os.Environ()
@@ -39,4 +39,6 @@ func envAction(c *cli.Context) {
if err := syscall.Exec(args[0], args, util.Map2KVPairs(envMap)); err != nil {
log.Fatal(err)
}
return nil
}