Created
June 4, 2017 13:35
-
-
Save andygock/2db46f360421b268dbd997db11490e98 to your computer and use it in GitHub Desktop.
Bash script: Download latest Firefox 32-bit installer for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Download latest Firefox 32-bit installer for Windows | |
# | |
url=$(wget -S --max-redirect 0 \ | |
"https://download.mozilla.org/?product=firefox-latest&os=win" 2>&1 \ | |
| grep "^Location" | cut -d ' ' -f 2) | |
if [ $# -ne 0 ]; then { echo $url; return 0; }; fi | |
wget "$url" -O "${url##*/}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment