Code Update

This commit is contained in:
Christer Warén
2024-06-01 01:53:48 +03:00
parent a614d63d1c
commit e1b05fbc51
6 changed files with 40 additions and 28 deletions

View File

@ -1,6 +1,9 @@
wx-header(){
if [[ $2 == "h1" ]]
then
echo ""
echo ""
echo ""
echo "=============================="
wx-repeat " " $((30/2-${#1}/2))
echo -n "$wxBold"

View File

@ -1,13 +1,13 @@
wx-start(){
echo ""
echo ""
echo ""
wx-header "Warén CLI" h1
mkdir -p $HOME/.config/warengroup &> /dev/null
if [[ ! -f "$HOME/.config/warengroup/config.json" ]]
if [[ $USER != "root" && $USER != "local" ]]
then
echo '{}' | jq > $HOME/.config/warengroup/config.json
mkdir -p $HOME/.config/warengroup &> /dev/null
if [[ ! -f "$HOME/.config/warengroup/config.json" ]]
then
echo '{}' | jq > $HOME/.config/warengroup/config.json
fi
fi
}