Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user