Create r2modman module

This commit is contained in:
Gerald Pinder
2024-03-02 23:21:40 -05:00
parent d12b487b2f
commit 352e7875a2
3 changed files with 10 additions and 15 deletions

View File

@@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -xeuo pipefail
# 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 -L0 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