Remove trailing slash from lock

Lock command will remove trailing slash from path (as it is invalid).
Fixes #1136.
pull/1145/head
J.R. Garcia 9 years ago
parent 018fd69aa2
commit 4cb6f3e943

@ -100,6 +100,7 @@ func (c *LockCommand) Run(args []string) int {
return 1
}
prefix := extra[0]
prefix = strings.TrimPrefix(prefix, "/")
script := strings.Join(extra[1:], " ")
// Calculate a session name if none provided

Loading…
Cancel
Save