2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 21:23:06 +00:00
nixpkgs/pkgs/servers/monitoring/cockpit/update.sh
lucasew 92628a12d8 cockpit: add update script
Signed-off-by: lucasew <lucas59356@gmail.com>
2023-03-14 13:40:20 -03:00

9 lines
268 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts
set -eu -o pipefail
version="$(curl --silent "https://api.github.com/repos/cockpit-project/cockpit/releases" | jq '.[0].tag_name' --raw-output)"
update-source-version cockpit "$version"