Code Update

This commit is contained in:
Christer Warén
2025-06-22 01:49:56 +03:00
parent 0cdc32a743
commit 73025e14d8
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -67,7 +67,10 @@ wx-login(){
if [[ $USER != "root" && $USER != "local" && -f "$HOME/.warengroup/config.json" ]]
then
USERNAME="$(cat $HOME/.warengroup/config.json | jq -r .login.$ORG.username)"
if [[ $(cat $HOME/.warengroup/config.json | jq -r .login.$ORG.username) != "null" ]]
then
USERNAME="$(cat $HOME/.warengroup/config.json | jq -r .login.$ORG.username)"
fi
TOKEN="$(cat $HOME/.warengroup/config.json | jq -r .login.$ORG.token)"
fi