#!/bin/sh
root=$(pwd)

# remove old backup
rm -rf elliebot_old 1>/dev/null 2>&1

# make a new backup
cp -rT elliebot elliebot_old 1>/dev/null 2>&1

wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/main/rebuild.sh
bash rebuild.sh

cd "$root"
rm "$root/n-rebuild.sh"
exit 0