mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

Clarify in the docs that ENV is not recursive Closes #10391 Signed-off-by: Doug Davis <dug@us.ibm.com>
18 lines
313 B
Go
18 lines
313 B
Go
package builder
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func handleJsonArgs(args []string, attributes map[string]bool) []string {
|
|
if len(args) == 0 {
|
|
return []string{}
|
|
}
|
|
|
|
if attributes != nil && attributes["json"] {
|
|
return args
|
|
}
|
|
|
|
// literal string command, not an exec array
|
|
return []string{strings.Join(args, " ")}
|
|
}
|