From be82cea84197f27ba7a33b966577d27d2cd4f3c6 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Sat, 2 Jan 2021 11:36:19 +0000 Subject: [PATCH] Fix check on manage-maas --- functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index 862a356..23e2606 100644 --- a/functions.sh +++ b/functions.sh @@ -8,7 +8,7 @@ install_deps() { # Install some of the dependent packages deps="jq" - if [[ "$0" == "*manage-maas-*" ]] ; then + if [[ "$0" =~"manage-maas" ]] ; then deps+=" virtinst" fi sudo apt -y update && sudo apt -y install ${deps} @@ -170,7 +170,7 @@ read_configs() configs="" configs+=" configs/default.config" configs+=" configs/maas.config" - if [[ "$0" == "*manage-maas-*" ]] ; then + if [[ "$0" =~ "manage-maas" ]] ; then configs+=" configs/hypervisor.config" fi