cmd/buildlet: fix bash wrapper check for iOS

Updates golang/go#41610

Change-Id: I9a2e151eaf8104e2f3a1a8d36f8dc72a6351fd4a
Reviewed-on: https://go-review.googlesource.com/c/build/+/259580
Trust: Elias Naur <mail@eliasnaur.com>
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Elias Naur 2020-10-06 09:49:28 +02:00
Родитель df6c66fe58
Коммит a9f75ee999
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -995,7 +995,7 @@ func needsBashWrapper(cmd string) bool {
return false
}
// The mobile platforms can't execute shell scripts directly.
ismobile := runtime.GOOS == "android" || runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64")
ismobile := runtime.GOOS == "android" || runtime.GOOS == "ios"
return ismobile
}