16 lines
419 B
Bash
16 lines
419 B
Bash
wx-start(){
|
|
wx-header "Warén CLI" h1
|
|
|
|
mkdir -p $HOME/.warengroup &> /dev/null
|
|
|
|
if [[ ! -f "$HOME/.warengroup/config.json" || $(jq -e . < $HOME/.warengroup/config.json &>/dev/null; echo $?) -gt 0 ]]
|
|
then
|
|
echo '{}' | jq > $HOME/.warengroup/config.json
|
|
fi
|
|
|
|
mkdir -p $HOME/.ssh/keys
|
|
chmod 700 -R $HOME/.ssh/keys
|
|
mkdir -p $HOME/.ssh/multiplex
|
|
chmod 700 -R $HOME/.ssh/multiplex
|
|
}
|