server/scripts/fetch_server.sh

12 lines
328 B
Bash
Raw Normal View History

#!/bin/sh
2022-08-07 22:28:50 +00:00
# Script used to fetch the latest version of the server jar
mkdir -p fetched_server
2022-08-07 22:28:50 +00:00
2023-06-20 20:03:41 +00:00
curl -L https://ci.plex.us.org/job/Scissors/job/1.20.1/lastSuccessfulBuild/artifact/*zip*/archive.zip > archive.zip
2022-08-07 22:28:50 +00:00
unzip -o archive.zip
2023-06-12 20:14:21 +00:00
mv archive/build/libs/scissors-*.jar fetched_server/server.jar
2022-08-07 22:28:50 +00:00
rm -rf archive/
rm archive.zip