зеркало из https://github.com/github/vitess-gh.git
Only check for k3s binary on Linux
Signed-off-by: Carson Anderson <ca@carsonoid.net>
This commit is contained in:
Родитель
e3c54bc371
Коммит
40b0546232
|
@ -21,9 +21,14 @@ function fail() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
PLATFORM_BINARIES=""
|
||||
case "$(uname -s)" in
|
||||
Linux*) PLATFORM_BINARIES="k3s";;
|
||||
esac
|
||||
|
||||
# These binaries are required to 'make test'
|
||||
# mysqld might be in /usr/sbin which will not be in the default PATH
|
||||
PATH="/usr/sbin:$PATH"
|
||||
for binary in k3s mysqld consul etcd etcdctl zksrv.sh javadoc mvn ant curl wget zip unzip; do
|
||||
for binary in mysqld consul etcd etcdctl zksrv.sh javadoc mvn ant curl wget zip unzip $PLATFORM_BINARIES; do
|
||||
command -v "$binary" > /dev/null || fail "${binary} is not installed in PATH. See https://vitess.io/contributing/build-from-source for install instructions."
|
||||
done;
|
||||
|
|
Загрузка…
Ссылка в новой задаче