Only check for k3s binary on Linux

Signed-off-by: Carson Anderson <ca@carsonoid.net>
This commit is contained in:
Carson Anderson 2020-06-22 09:11:17 -06:00
Родитель e3c54bc371
Коммит 40b0546232
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -21,9 +21,14 @@ function fail() {
exit 1 exit 1
} }
PLATFORM_BINARIES=""
case "$(uname -s)" in
Linux*) PLATFORM_BINARIES="k3s";;
esac
# These binaries are required to 'make test' # These binaries are required to 'make test'
# mysqld might be in /usr/sbin which will not be in the default PATH # mysqld might be in /usr/sbin which will not be in the default PATH
PATH="/usr/sbin:$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." command -v "$binary" > /dev/null || fail "${binary} is not installed in PATH. See https://vitess.io/contributing/build-from-source for install instructions."
done; done;