Code Update

This commit is contained in:
Christer Warén
2025-06-22 01:22:12 +03:00
parent 1a99d2e2a1
commit c59d1b374d
3 changed files with 12 additions and 4 deletions

View File

@ -4,8 +4,9 @@ wx-start(){
if [[ $USER != "root" && $USER != "local" ]]
then
mkdir -p $HOME/.warengroup &> /dev/null
touch $HOME/.warengroup/config.json &> /dev/null
if [[ ! -f "$HOME/.warengroup/config.json" ]]
if [[ ! -f "$HOME/.warengroup/config.json" || $(cat $HOME/.warengroup/config.json | jq -e . >/dev/null 2>&1 | echo ${PIPESTATUS[1]}) -gt 0 ]]
then
echo '{}' | jq > $HOME/.warengroup/config.json
fi