Skip to content

Instantly share code, notes, and snippets.

@jaller94
Last active June 30, 2021 12:22
Show Gist options
  • Save jaller94/02915fc726e8846cbe32c89a5ecef7b7 to your computer and use it in GitHub Desktop.
Save jaller94/02915fc726e8846cbe32c89a5ecef7b7 to your computer and use it in GitHub Desktop.
Download Element Web from GitHub
#!/bin/sh
# Downloads the latest Element Web releases from GitHub.
curl https://api.github.com/repos/vector-im/element-web/releases?page=1 > ~/latest-element-web-releases.json
cat ~/test.json | jq "sort_by(.tag_name)" | jq --raw-output ".[].assets[0].browser_download_url" | xargs --max-args=1 wget --no-clobber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment