Files
firefox/check-version.sh
2025-10-18 17:55:05 +03:00

12 lines
265 B
Bash

#!/bin/bash
URL="https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"
# Get version number from tag name
VERSION=$(curl -sfi "$URL" | grep -o 'firefox-[0-9.]\+[0-9]' | head -n1)
# Trim prefix
VERSION=${VERSION//firefox-/}
echo "$VERSION"