We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c980e93 commit b92e4c7Copy full SHA for b92e4c7
ruffle/download-latest-ruffle.sh
@@ -1,9 +1,9 @@
1
#!/bin/bash
2
-SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
3
4
RUFFLE_DIR=$SCRIPT_DIR
5
6
-SELFHOST_URL=$(curl "https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r '.[0].assets[] | select(.name | contains("selfhosted")) | .browser_download_url')
+SELFHOST_URL=$(curl "https://api.github.com/repos/ruffle-rs/ruffle/releases" | jq -r 'first(.[].assets[] | select(.name | contains("selfhosted"))) | .browser_download_url')
7
8
echo "$SELFHOST_URL"
9
0 commit comments