cmomand/read: strip path prefix if necessary. Fixes #343

This commit is contained in:
Armon Dadgar
2015-06-17 18:33:15 -07:00
parent 70ee1866ca
commit 0277cedc8a

View File

@@ -27,7 +27,11 @@ func (c *ReadCommand) Run(args []string) int {
flags.Usage()
return 1
}
path := args[0]
if path[0] == '/' {
path = path[1:]
}
client, err := c.Client()
if err != nil {