mirror of
https://github.com/docker/docs.git
synced 2026-03-28 23:08:49 +07:00
Clarify in the docs that ENV is not recursive Closes #10391 Signed-off-by: Doug Davis <dug@us.ibm.com>
19 lines
313 B
Go
19 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, " ")}
|
|
}
|