diff --git a/net/net.sh b/net/net.sh index 6b3c999e3..04d24fc7e 100755 --- a/net/net.sh +++ b/net/net.sh @@ -176,8 +176,9 @@ else fi build() { + supported=("18.04") declare MAYBE_DOCKER= - if [[ $(uname) != Linux ]]; then + if [[ $(uname) != Linux || ! " ${supported[*]} " =~ $(lsb_release -sr) ]]; then # shellcheck source=ci/rust-version.sh source "$SOLANA_ROOT"/ci/rust-version.sh MAYBE_DOCKER="ci/docker-run.sh $rust_stable_docker_image"