Code Update

This commit is contained in:
Christer Warén
2025-06-23 09:36:34 +03:00
parent 73025e14d8
commit e75b95abac
3 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,13 @@
wi-start(){
wi-header "Warén Init" h1
mkdir -p $HOME/.warengroup &> /dev/null
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
mkdir -p $HOME/.ssh/keys
chmod 700 -R $HOME/.ssh/keys
}