Updated e-rebuild and e-run

This commit is contained in:
Toastie 2024-06-25 20:48:12 +12:00
parent bbf30665b9
commit e3e3e30c36
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 35 additions and 2 deletions

View file

@ -1 +1,15 @@
#!/bin/sh
#!/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

View file

@ -1 +1,20 @@
#!/bin/sh
#!/bin/sh
echo "Running EllieBot"
root=$(pwd)
if hash dotnet 2>/dev/null
then
echo "Dotnet installed."
else
echo "Dotnet is not installed. Please install dotnet."
exit 1
fi
cd "$root/elliebot/output"
echo "Running EllieBot. Please wait."
dotnet EllieBot.dll
echo "Done"
cd "$root"
rm "$root/e-run.sh"
exit 0