release.sh: read meson-rewrite output from stdout

Since version 1.6, Meson now uses stdout:
3f4957c713

(cherry picked from commit d417a8fcd0)
This commit is contained in:
Simon Ser 2024-10-27 21:55:24 +01:00
parent 958f69dbdd
commit 3a3d585225

View file

@ -1,7 +1,7 @@
#!/bin/sh -eu
prev=$(git describe --tags --abbrev=0)
next=$(meson rewrite kwargs info project / 2>&1 >/dev/null | jq -r '.kwargs["project#/"].version')
next=$(meson rewrite kwargs info project / | jq -r '.kwargs["project#/"].version')
case "$next" in
*-dev)