mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
cmomand/read: strip path prefix if necessary. Fixes #343
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user