nixpkgs/pkgs/applications/misc/logseq/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
266 B
Bash
Raw Normal View History

2021-03-20 16:57:39 +00:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
version="$(curl -sL "https://api.github.com/repos/logseq/logseq/releases" | jq 'map(select(.prerelease == false)) | .[0].tag_name' --raw-output)"
2021-03-20 16:57:39 +00:00
update-source-version logseq "$version"