From cc1cc6e39f10c4d8f4118ce449996a9157550d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 29 Apr 2024 07:22:08 +0300 Subject: [PATCH] Source Update --- src/functions/login.sh | 5 +++++ wx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/functions/login.sh b/src/functions/login.sh index 913d9c1..09aece6 100644 --- a/src/functions/login.sh +++ b/src/functions/login.sh @@ -108,6 +108,11 @@ wx-login(){ echo -n $(curl https://$VAULT_DOMAIN/v1/auth/token/lookup-self -X GET --header "X-Vault-Token: $VAULT_LOGIN" -s | jq -r '.data.meta.username') echo $wxNormal + echo -n "Token: " + echo -n $wxItalic + echo -n "****************" + echo $wxNormal + config[${ORG}]=$VAULT_LOGIN echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json diff --git a/wx b/wx index 7fe0068..1158d33 100755 --- a/wx +++ b/wx @@ -130,6 +130,11 @@ wx-login(){ echo -n $(curl https://$VAULT_DOMAIN/v1/auth/token/lookup-self -X GET --header "X-Vault-Token: $VAULT_LOGIN" -s | jq -r '.data.meta.username') echo $wxNormal + echo -n "Token: " + echo -n $wxItalic + echo -n "****************" + echo $wxNormal + config[${ORG}]=$VAULT_LOGIN echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json