#!/bin/sh root=$(pwd) # remove old backup but store the database if [ -d elliebot_old/output/data/ ]; then if [ -f elliebot_old/output/data/NadekoBot.db ]; then if [ ! -d elliebot_db_backups/ ]; then mkdir elliebot_db_backups fi cp elliebot_old/output/data/NadekoBot.db elliebot_db_backups/NadekoBot-$(date +%s).db fi fi rm -rf elliebot_old 1>/dev/null 2>&1 # make a new backup mv -fT elliebot elliebot_old 1>/dev/null 2>&1 # clone new version git clone -b v4 --recursive --depth 1 https://toastielab.dev/Emotions-stuff/elliebot wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/v4/rebuild.sh bash rebuild.sh cd "$root" rm "$root/e-download.sh" exit 0