Initial commit

This commit is contained in:
2026-03-28 21:59:41 +02:00
commit 2c6dbe9c93
4 changed files with 55 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
URL="https://www.zlib.net/pigz/"
# Get version number from FTP server
VERSION=$(curl -s -L "$URL" | grep -o -P 'pigz-([\d.]+).tar.gz')
# Remove prefix
VERSION=${VERSION//pigz-/}
# Remove '.tar.gz' suffix from VERSION variable
VERSION=${VERSION//.tar.gz/}
echo "$VERSION"