Add ShellEscapeListIncludingSpaces am: 3a988df18a
am: 4a7a93e620
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1894576 Change-Id: I8838ccf45808027ff9cf564ba7f0a8186dcfdb45
This commit is contained in:
commit
f78b492e23
1 changed files with 8 additions and 0 deletions
|
@ -53,7 +53,15 @@ func ShellEscapeList(slice []string) []string {
|
|||
slice[i] = ShellEscape(s)
|
||||
}
|
||||
return slice
|
||||
}
|
||||
|
||||
func ShellEscapeListIncludingSpaces(slice []string) []string {
|
||||
slice = append([]string(nil), slice...)
|
||||
|
||||
for i, s := range slice {
|
||||
slice[i] = ShellEscapeIncludingSpaces(s)
|
||||
}
|
||||
return slice
|
||||
}
|
||||
|
||||
func shellUnsafeChar(r rune) bool {
|
||||
|
|
Loading…
Reference in a new issue