From 014c05ff55fdcd55586b31d53ad408cc046425f9 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Sat, 30 Sep 2023 02:02:11 -0500 Subject: [PATCH] fix: use tag_name (not name) to find zfs tagged versions --- build-kmod-zfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-kmod-zfs.sh b/build-kmod-zfs.sh index 3c9a8e1..ca8bc56 100755 --- a/build-kmod-zfs.sh +++ b/build-kmod-zfs.sh @@ -11,8 +11,8 @@ cd /tmp # Use cURL to fetch the given URL, saving the response to `data.json` curl "https://api.github.com/repos/openzfs/zfs/releases" -o data.json -ZFS_VERSION=$(jq -r '[ .[] | select(.prerelease==false and .draft==false) ][0].name' data.json|cut -f2- -d-) -ZFS_PREVIOUS=$(jq -r '[ .[] | select(.prerelease==false and .draft==false) ][1].name' data.json|cut -f2- -d-) +ZFS_VERSION=$(jq -r '[ .[] | select(.prerelease==false and .draft==false) ][0].tag_name' data.json|cut -f2- -d-) +ZFS_PREVIOUS=$(jq -r '[ .[] | select(.prerelease==false and .draft==false) ][1].tag_name' data.json|cut -f2- -d-) ### zfs specific build deps rpm-ostree install libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel python3-devel libffi-devel libcurl-devel