server/scripts/fetch_server.sh
2022-12-27 19:58:33 +02:00

12 lines
328 B
Bash
Executable file

#!/bin/sh
# Script used to fetch the latest version of the server jar
mkdir -p fetched_server
curl -L https://ci.scissors.gg/job/Scissors/job/1.19.3/lastSuccessfulBuild/artifact/*zip*/archive.zip > archive.zip
unzip -o archive.zip
mv archive/build/libs/Scissors-*.jar fetched_server/server.jar
rm -rf archive/
rm archive.zip