Code Update
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user