1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Fix ros dev panic

This commit is contained in:
Darren Shepherd
2016-02-04 09:25:36 -07:00
parent ce915927be
commit 28bd8b0ccb
2 changed files with 19 additions and 1 deletions

View File

@@ -2,10 +2,13 @@ package control
import (
"fmt"
"github.com/codegangsta/cli"
"github.com/rancher/os/util"
)
func devAction(c *cli.Context) {
fmt.Println(util.ResolveDevice(c.Args()[0]))
if len(c.Args()) > 0 {
fmt.Println(util.ResolveDevice(c.Args()[0]))
}
}