From ac821d92cff87e2a69aea04d403672341034b456 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 28 Feb 2020 05:36:31 -0500 Subject: [PATCH] refactor: use in-array check to add support for future versions --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 0667d19af..072a04716 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -201,7 +201,7 @@ install-dokku-from-deb-package() { install-dokku-from-rpm-package() { local DOKKU_CHECKOUT="$1" - if [[ "$DOKKU_DISTRO_VERSION" != "7" ]]; then + if ! in-array "$DOKKU_DISTRO_VERSION" "7"; then log-fail "Unsupported Linux distribution. Only the following versions are supported: CentOS [7]" fi