Default to Docker based testnet deployment on unsupported Ubuntu versions (#3937)

* Run docker if Ubuntu version is unsupported

* ShellCheck fixes
This commit is contained in:
Sagar Dhawan 2019-04-22 18:22:43 -07:00 committed by GitHub
parent 4f47fc00bc
commit 69e67d06a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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"