refactor: use in-array check to add support for future versions

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-28 05:36:31 -05:00
parent db412399ba
commit ac821d92cf

View File

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