From a2478d0a7abe35edb0826b802043634cdf7e3c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 29 Apr 2024 21:35:32 +0300 Subject: [PATCH] Source Update --- src/functions/login.sh | 19 ++++++++++--------- wx | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/functions/login.sh b/src/functions/login.sh index 3f43e1e..b54a93b 100644 --- a/src/functions/login.sh +++ b/src/functions/login.sh @@ -165,16 +165,17 @@ wx-login(){ wx-stop fi + + config[${ORG}]=$VAULT_LOGIN + + mkdir -p $HOME/.config/warengroup &> /dev/null + touch $HOME/.config/warengroup/login.json &> /dev/null + + echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json + + cat $HOME/.config/warengroup/login.json + wx-start fi - - config[${ORG}]=$VAULT_LOGIN - - mkdir -p $HOME/.config/warengroup &> /dev/null - touch $HOME/.config/warengroup/login.json &> /dev/null - - echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json - - wx-start else echo -n $wxBold echo -n $ORG diff --git a/wx b/wx index 05f4d2f..04bd6ba 100755 --- a/wx +++ b/wx @@ -187,16 +187,17 @@ wx-login(){ wx-stop fi + + config[${ORG}]=$VAULT_LOGIN + + mkdir -p $HOME/.config/warengroup &> /dev/null + touch $HOME/.config/warengroup/login.json &> /dev/null + + echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json + + cat $HOME/.config/warengroup/login.json + wx-start fi - - config[${ORG}]=$VAULT_LOGIN - - mkdir -p $HOME/.config/warengroup &> /dev/null - touch $HOME/.config/warengroup/login.json &> /dev/null - - echo '{ "'$ORG'": "'$VAULT_LOGIN'" }' | jq > $HOME/.config/warengroup/login.json - - wx-start else echo -n $wxBold echo -n $ORG