CLI: Update

This commit is contained in:
Christer Warén
2026-09-28 22:56:29 +03:00
parent 64e3f00917
commit 2e34e95775
+1 -1
View File
@@ -132,7 +132,7 @@ wxi-config-legacy(){
jq '.login.'$ORG'.token = "'$TOKEN'"' $WX_HOME/config.json &> $WX_HOME/config.json.tmp jq '.login.'$ORG'.token = "'$TOKEN'"' $WX_HOME/config.json &> $WX_HOME/config.json.tmp
;; ;;
read) read)
if [[ -f "$WX_HOME/config.json" && $(cat$WX_HOME/config.json | jq -r .login.$ORG.token) != 'null' && $(cat $WX_HOME/config.json | jq -r .login.$ORG.token) != '' ]] if [[ -f "$WX_HOME/config.json" && $(cat $WX_HOME/config.json | jq -r .login.$ORG.token) != 'null' && $(cat $WX_HOME/config.json | jq -r .login.$ORG.token) != '' ]]
then then
cat $WX_HOME/config.json | jq -r .login.$ORG.token cat $WX_HOME/config.json | jq -r .login.$ORG.token
else else