-
Notifications
You must be signed in to change notification settings - Fork 47
/
NadekoAutoRestartAndUpdate.sh
43 lines (42 loc) · 1.37 KB
/
NadekoAutoRestartAndUpdate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
echo ""
echo "Welcome to NadekoBot Auto Restart and Update!"
echo ""
choice=5
echo "1. Run Auto Restart normally without Updating."
echo "2. Auto Restart and Update with Dev Build (latest)"
echo "3. Auto Restart and Update with Stable Build"
echo "4. Exit"
echo -n "Choose [1] to Run NadekoBot with auto restart on ".die" command without updating itself, [2 or 3] to Run with Auto Updating and Restarting after using ".die" command."
while [ $choice -eq 5 ]; do
read choice
if [ $choice -eq 1 ] ; then
echo ""
curl -L https://github.com/Kwoth/NadekoBot-BashScript/raw/master/NadekoARN.sh | sh
else
if [ $choice -eq 2 ] ; then
echo ""
curl -L https://github.com/Kwoth/NadekoBot-BashScript/raw/master/NadekoARU_Latest.sh | sh
else
if [ $choice -eq 3 ] ; then
echo ""
curl -L https://github.com/Kwoth/NadekoBot-BashScript/raw/master/NadekoARU_Stable.sh | sh
else
if [ $choice -eq 4 ] ; then
echo ""
echo "Exiting..."
exit 0
else
clear
echo "1. Run Auto Restart normally without Updating."
echo "2. Auto Restart and Update with Dev Build (latest)"
echo "3. Auto Restart and Update with Stable Build"
echo "4. Exit"
echo -n "Choose [1] to Run NadekoBot with auto restart on ".die" command without updating itself, [2 or 3] to Run with Auto Updating and Restarting after using ".die" command."
choice=5
fi
fi
fi
fi
done
exit 0