about summary refs log tree commit diff
path: root/pkgs/applications/misc/logseq/update.sh
blob: eb81dc68e4ebf826d249ebb1b0759e41ae6e3188 (plain) (blame)
1
2
3
4
5
#!/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)"
update-source-version logseq "$version"