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