Merge pull request #285 from luthermonson/prune-loc
changed prune to 3rd arg in check
This commit is contained in:
commit
1482cb1143
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
|
|||
|
||||
// helper to check if args match "docker prune"
|
||||
func isCommandPrune(args []string) bool {
|
||||
return len(args) > 2 && args[1] == "prune"
|
||||
return len(args) > 3 && args[2] == "prune"
|
||||
}
|
||||
|
||||
func commandPrune() *exec.Cmd {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue