Updated e-rebuild and e-run
This commit is contained in:
parent
bbf30665b9
commit
e3e3e30c36
2 changed files with 35 additions and 2 deletions
14
e-rebuild.sh
14
e-rebuild.sh
|
@ -1 +1,15 @@
|
|||
#!/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
|
19
e-run.sh
19
e-run.sh
|
@ -1 +1,20 @@
|
|||
#!/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
|
Loading…
Reference in a new issue