Skip to content

Commit 1091af3

Browse files
fix: shell compatibility (#411)
1 parent 3147f78 commit 1091af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/misc/downloads-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ MINECRAFT_VERSION="%%_MAJ_MIN_PAT_MC_%%"
4747
LATEST_BUILD=$(curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds | \
4848
jq '.builds | map(select(.channel == "default") | .build) | .[-1]')
4949
50-
if [[ "$LATEST_BUILD" != "null" ]]; then
50+
if [ "$LATEST_BUILD" != "null" ]; then
5151
echo "Latest stable build is $LATEST_BUILD"
5252
else
5353
echo "No stable build for version $MINECRAFT_VERSION found :("
@@ -69,7 +69,7 @@ MINECRAFT_VERSION="%%_MAJ_MIN_PAT_MC_%%"
6969
LATEST_BUILD=$(curl -s https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds | \
7070
jq -r '.builds | map(select(.channel == "default") | .build) | .[-1]')
7171
72-
if [[ "$LATEST_BUILD" != "null" ]]; then
72+
if [ "$LATEST_BUILD" != "null" ]; then
7373
JAR_NAME=${PROJECT}-${MINECRAFT_VERSION}-${LATEST_BUILD}.jar
7474
PAPERMC_URL="https://api.papermc.io/v2/projects/${PROJECT}/versions/${MINECRAFT_VERSION}/builds/${LATEST_BUILD}/downloads/${JAR_NAME}"
7575

0 commit comments

Comments
 (0)