From 1cfabac2f5d844dca5450f5454e0d7fd1342f592 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 14 Dec 2021 15:53:44 +0000 Subject: [PATCH] Fix login fallback Signed-off-by: Marcus Noble --- home/.bin/gs-login | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bin/gs-login b/home/.bin/gs-login index 81593fc..ea25779 100755 --- a/home/.bin/gs-login +++ b/home/.bin/gs-login @@ -61,7 +61,7 @@ MC_EXIST=$(kubectl config get-contexts --no-headers -o name gs-${POS_ARGS[0]} 2> case ${#POS_ARGS[@]} in 1) kubectl config delete-context gs-${POS_ARGS[0]} &>/dev/null - kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} || opsctl create kubeconfig ${POS_ARGS[0]} + kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} || opsctl create kubeconfig -i ${POS_ARGS[0]} ;; 2) if [ ${MC_EXIST} -eq 0 ]; then gs-login ${POS_ARGS[0]}; fi