From ebc633d147dbf239b99ca54d88473ed8dea01b7b Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Tue, 25 May 2021 19:05:47 +0530 Subject: [PATCH] fix(install): reset ee cli args Signed-off-by: Rajesh Rajendran --- scripts/helm/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/helm/install.sh b/scripts/helm/install.sh index 0650af991..ad69709b3 100755 --- a/scripts/helm/install.sh +++ b/scripts/helm/install.sh @@ -17,15 +17,17 @@ domain_name=`grep domain_name vars.yaml | grep -v "example" | cut -d " " -f2 | c } } -[[ $1 == "ee" ]] || { +[[ $1 == "ee" ]] && { [[ $2 == "" ]] || { sed -i "s#enterprise_edition_license.*#enterprise_edition_license: ${2}#g" vars.yaml } && { - echo """Enerprise key is missing. + echo """Enerprise edition license key is missing. Usage: ./install.sh ee XXXXXXXXXXXXX """ exit 1 } + # Resetting command line arguments. + shift 2 } # https://parrot.asayer.io/os/license