Added version variable. Defaults to Prod releases
This commit is contained in:
parent
7123e4a673
commit
616bcfcf5d
@ -3,8 +3,13 @@
|
|||||||
#Cleanup Old
|
#Cleanup Old
|
||||||
rm -rf /root/NadekoBot
|
rm -rf /root/NadekoBot
|
||||||
|
|
||||||
#Get NadekoBot Latest
|
#Get NadekoBot Version
|
||||||
curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\
|
if [[ "$VERSION" = dev]]; then
|
||||||
|
curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\
|
||||||
|
else
|
||||||
|
curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\
|
||||||
|
fi
|
||||||
|
|
||||||
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot
|
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot
|
||||||
|
|
||||||
#Sync any new data files
|
#Sync any new data files
|
||||||
|
Loading…
Reference in New Issue
Block a user