File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ MINECRAFT_VERSION="%%_MAJ_MIN_PAT_MC_%%"
47
47
LATEST_BUILD=$(curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds | \
48
48
jq '.builds | map(select(.channel == "default") | .build) | .[-1]')
49
49
50
- if [[ "$LATEST_BUILD" != "null" ] ]; then
50
+ if [ "$LATEST_BUILD" != "null" ]; then
51
51
echo "Latest stable build is $LATEST_BUILD"
52
52
else
53
53
echo "No stable build for version $MINECRAFT_VERSION found :("
@@ -69,7 +69,7 @@ MINECRAFT_VERSION="%%_MAJ_MIN_PAT_MC_%%"
69
69
LATEST_BUILD=$(curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds | \
70
70
jq -r '.builds | map(select(.channel == "default") | .build) | .[-1]')
71
71
72
- if [[ "$LATEST_BUILD" != "null" ] ]; then
72
+ if [ "$LATEST_BUILD" != "null" ]; then
73
73
JAR_NAME=${PROJECT}-${MINECRAFT_VERSION}-${LATEST_BUILD}.jar
74
74
PAPERMC_URL="https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds/${LATEST_BUILD}/downloads/${JAR_NAME}"
75
75
You can’t perform that action at this time.
0 commit comments