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:
parent
225ffe5dd0
commit
0f2f663d26
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue