0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-26 05:30:39 +00:00

Merge pull request #285 from luthermonson/prune-loc

changed prune to 3rd arg in check
This commit is contained in:
Brad Rydzewski 2020-05-28 12:06:46 -07:00 committed by GitHub
commit 1482cb1143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
// helper to check if args match "docker prune" // helper to check if args match "docker prune"
func isCommandPrune(args []string) bool { func isCommandPrune(args []string) bool {
return len(args) > 2 && args[1] == "prune" return len(args) > 3 && args[2] == "prune"
} }
func commandPrune() *exec.Cmd { func commandPrune() *exec.Cmd {