From ec65840ea43c97ec18c5a373dc687eb981f8bbac Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Sat, 17 Feb 2024 01:01:12 -0500 Subject: [PATCH] Install latest release of r2modman --- config/scripts/install-r2modman.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/scripts/install-r2modman.sh b/config/scripts/install-r2modman.sh index e4bc0d8..4a379f6 100755 --- a/config/scripts/install-r2modman.sh +++ b/config/scripts/install-r2modman.sh @@ -1,9 +1,17 @@ #!/usr/bin/env bash -set -euo pipefail +set -xeuo pipefail -VERSION="3.1.46" +# Fetch the latest tag from the GitHub repository +LATEST_TAG=$(curl -s https://api.github.com/repos/ebkr/r2modmanPlus/tags | jq -r '.[0].name') +# Extract the version number from the tag +VERSION=${LATEST_TAG#v} + +echo "Latest version is $VERSION" + +# Download the latest version of the r2modman package curl -L https://github.com/ebkr/r2modmanPlus/releases/download/v${VERSION}/r2modman-${VERSION}.x86_64.rpm -o r2modman-${VERSION}.x86_64.rpm +# Install the downloaded package rpm-ostree install r2modman-${VERSION}.x86_64.rpm