blob: 38897b2cadd6d2060c9d4338dfa111343d346db7 [file] [log] [blame]
package dockerfile
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, " ")}
}