Hide Clean output in logout command
This commit is contained in:
parent
2f33daaaa7
commit
b36f98e5e9
@ -5,7 +5,7 @@ wx-logout(){
|
|||||||
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
|
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
|
||||||
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
|
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
|
||||||
then
|
then
|
||||||
wx-clean
|
wx-clean &> /dev/null
|
||||||
jq '.login = {}' $HOME/.config/warengroup/config.json &> $HOME/.config/warengroup/config.json.tmp
|
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
|
mv $HOME/.config/warengroup/config.json.tmp $HOME/.config/warengroup/config.json &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
2
wx
2
wx
@ -369,7 +369,7 @@ wx-logout(){
|
|||||||
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
|
VAULT_LOGIN=$(cat $HOME/.config/warengroup/config.json | jq -r .login)
|
||||||
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
|
if [[ $VAULT_LOGIN != null && $VAULT_LOGIN != "{}" ]]
|
||||||
then
|
then
|
||||||
wx-clean
|
wx-clean &> /dev/null
|
||||||
jq '.login = {}' $HOME/.config/warengroup/config.json &> $HOME/.config/warengroup/config.json.tmp
|
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
|
mv $HOME/.config/warengroup/config.json.tmp $HOME/.config/warengroup/config.json &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user