Skip to content

Commit 2e2daba

Browse files
authored
Added version override
1 parent bce547a commit 2e2daba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: scripts/start-server.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
2-
LAT_V="$(wget -qO- https://api.github.com/repos/LunaMultiplayer/LunaMultiplayer/releases/latest | jq -r '.tag_name')"
2+
3+
if [ -z "${VERSION_OVERRIDE}" ]; then
4+
echo "---No Luna override version set, falling back to 'latest'!---"
5+
VERSION_OVERRIDE="latest"
6+
fi
7+
8+
LAT_V="$(wget -qO- https://api.github.com/repos/LunaMultiplayer/LunaMultiplayer/releases/tags/${VERSION_OVERRIDE} | jq -r '.tag_name')"
39
CUR_V="$(find ${DATA_DIR} -name "LMP-v*" 2>/dev/null | cut -d '-' -f2 | sed 's/v//g')"
410

511
if [ -z $LAT_V ]; then

0 commit comments

Comments
 (0)