From 72bf5916bb07f4906780949e420becbbb22c6d44 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 14 Dec 2022 15:57:30 +0100 Subject: [PATCH] feat(init): Optimizing search command Signed-off-by: rjshrjndrn --- scripts/helmcharts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/init.sh b/scripts/helmcharts/init.sh index 58f70d982..08a3eb72f 100644 --- a/scripts/helmcharts/init.sh +++ b/scripts/helmcharts/init.sh @@ -113,7 +113,7 @@ function sed_i_wrapper(){ function create_passwords() { # Error out only if the domain name is empty in vars.yaml - existing_domain_name=`grep domainName vars.yaml | awk '{print $2}' | xargs` + existing_domain_name=`awk '/domainName/ {print $2}' vars.yaml | xargs` [[ -z $existing_domain_name ]] && { [[ -z $DOMAIN_NAME ]] && { fatal 'DOMAIN_NAME variable is empty. Rerun the script `DOMAIN_NAME=openreplay.mycomp.org bash init.sh `'