12 lines
265 B
Bash
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"
|