Hide Clean output in logout command

This commit is contained in:
Christer Warén 2024-06-19 20:56:27 +03:00
parent 2f33daaaa7
commit b36f98e5e9
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ wx-logout(){
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
then
wx-clean
wx-clean &> /dev/null
jq '.login = {}' $HOME/.config/warengroup/config.json &> $HOME/.config/warengroup/config.json.tmp
mv $HOME/.config/warengroup/config.json.tmp $HOME/.config/warengroup/config.json &> /dev/null
fi

2
wx
View File

@ -369,7 +369,7 @@ wx-logout(){
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
then
wx-clean
wx-clean &> /dev/null
jq '.login = {}' $HOME/.config/warengroup/config.json &> $HOME/.config/warengroup/config.json.tmp
mv $HOME/.config/warengroup/config.json.tmp $HOME/.config/warengroup/config.json &> /dev/null
fi