Initial commit

This commit is contained in:
2026-05-08 20:02:59 +03:00
commit 4857cd0397
4 changed files with 77 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Codeberg repository
REPO="smxi/inxi"
# Get version from tag name using Codeberg Rest API
VERSION=$(curl -s -L https://codeberg.org/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
# Replace '-' with '_'
VERSION=${VERSION//-/_}
# Remove 'v'
#VERSION=${VERSION//v/}
echo "$VERSION"