Add check-version.sh script

This commit is contained in:
2025-09-22 16:43:19 +03:00
parent 5fe3fb872c
commit eb68d2aa8e
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
URL="https://archive.mozilla.org/pub/security/nss/releases/"
# Get version number from tag name
VERSION=$(curl -s -L "$URL" | grep -o -E 'NSS_[0-9]{1,}_[0-9]{1,}(_[0-9]{1,})?_RTM' | grep -o -E '[0-9]{1,}_[0-9]{1,}(_[0-9]{1,})?' | tr '_' '.' | sort -V | tail -n1)
echo "$VERSION"