Skip to content

Instantly share code, notes, and snippets.

@edufolly
Created May 4, 2024 19:35
Show Gist options
  • Save edufolly/b994536b9183428c20d41dca68925e80 to your computer and use it in GitHub Desktop.
Save edufolly/b994536b9183428c20d41dca68925e80 to your computer and use it in GitHub Desktop.
Script to install order-tests.
#!/bin/sh
filename="order-tests-linux.tar.gz"
latest=$(curl --silent --fail https://api.github.com/repos/edufolly/order_tests/releases/latest)
url=$(jq -r '.assets[] | select(.name == "order-tests-linux.tar.gz").browser_download_url' <<< $latest)
curl --silent --fail --remote-name --location "$url"
tar -xf $filename
rm $filename
mv order-tests /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment