Skip to content

Commit b92e4c7

Browse files
emma-sgikreymer
authored andcommitted
fix ruffle downloader to only download latest with a selfhosted version
1 parent c980e93 commit b92e4c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruffle/download-latest-ruffle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
2-
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
2+
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
33

44
RUFFLE_DIR=$SCRIPT_DIR
55

6-
SELFHOST_URL=$(curl "https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r '.[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url')
6+
SELFHOST_URL=$(curl "https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r 'first(.[].assets[] | select(.name | contains("selfhosted"))) | .browser_download_url')
77

88
echo "$SELFHOST_URL"
99

0 commit comments

Comments
 (0)