This commit is contained in:
Poag 2016-08-12 15:28:21 +01:00 committed by GitHub
parent 22190df132
commit c094d13a15

View File

@ -7,7 +7,7 @@ rm -rf /root/NadekoBot
if [[ "$VERSION" = dev ]]; then 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 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 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 &&\ 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 fi
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot unzip /root/NadekoBot.latest.zip -d /root/NadekoBot