mirror of
https://github.com/rancher/os.git
synced 2025-07-07 11:58:38 +00:00
Merge pull request #465 from janeczku/fix-ros-env
Return gracefully when `ros env` is called without argument(s)
This commit is contained in:
commit
b6a87cb1c8
@ -18,6 +18,9 @@ func envAction(c *cli.Context) {
|
||||
}
|
||||
|
||||
args := c.Args()
|
||||
if len(args) == 0 {
|
||||
return
|
||||
}
|
||||
osEnv := os.Environ()
|
||||
|
||||
envMap := make(map[string]string, len(cfg.Rancher.Environment)+len(osEnv))
|
||||
|
Loading…
Reference in New Issue
Block a user