config/profiles/http/services/kukkee/pkg/update-version.sh

18 lines
585 B
Bash
Raw Normal View History

2022-10-17 22:40:48 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts curl jq gnused nix coreutils
set -euo pipefail
set -x
#cd "$(dirname "${BASH_SOURCE[0]}")"/../../..
latestVersion="$(curl -s "https://api.github.com/repos/AnandBaburajan/Kukkee/releases?per_page=1" | jq -r ".[0].tag_name")"
#currentVersion=$(nix-instantiate --eval -E "with import ./. {}; kukkee.version or (lib.getVersion kukkee)" | tr -d '"')
#if [[ "$currentVersion" == "$latestVersion" ]]; then
# echo "Package is up-to-date: $currentVersion"
# exit 0
#fi
#update-source-version kukkee "$latestVersion"