matrix-appservice-irc: fix current version detection in update script

Would previously error out with
> error: '(with import ../../../../. {}; matrix-appservice-irc.version)' is not a valid URL
This commit is contained in:
Martin Weinelt 2021-11-30 16:49:36 +01:00
parent 225ffe5dd0
commit 0f2f663d26
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -5,7 +5,7 @@ set -euo pipefail
# cd to the folder containing this script
cd "$(dirname "$0")"
CURRENT_VERSION=$(nix eval --raw '(with import ../../../../. {}; matrix-appservice-irc.version)')
CURRENT_VERSION=$(nix-instantiate ../../../../. --eval --strict -A matrix-appservice-irc.version | tr -d '"')
TARGET_VERSION="$(curl https://api.github.com/repos/matrix-org/matrix-appservice-irc/releases/latest | jq --exit-status -r ".tag_name")"
if [[ "$CURRENT_VERSION" == "$TARGET_VERSION" ]]; then