From 63d2d5e5b529f738c15ed538ba814527407689b6 Mon Sep 17 00:00:00 2001 From: jayonthenet Date: Tue, 27 Aug 2024 17:54:00 +0200 Subject: [PATCH] Fixed variable passing for TF Signed-off-by: jayonthenet --- 0_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0_install.sh b/0_install.sh index 1c80af0..fff8852 100755 --- a/0_install.sh +++ b/0_install.sh @@ -30,7 +30,7 @@ kind export kubeconfig --internal -n 5min-idp --kubeconfig "$kubeconfig_docker" ### Export needed env-vars for terraform export TF_VAR_humanitec_org=$HUMANITEC_ORG # Aim for service user if present, otherwise use current user token (max 24h validity) -if [ -z "$HUMANITEC_SERVICE_USER" ]; then +if [ -n "$HUMANITEC_SERVICE_USER" ]; then export TF_VAR_humanitec_token=$HUMANITEC_SERVICE_USER else export TF_VAR_humanitec_token=$(yq -r '.token' ~/.humctl)