Last active
October 1, 2023 17:28
-
-
Save pranz24/6e9c71581156a7dee5477b503e4e84c3 to your computer and use it in GitHub Desktop.
Horrible bash script for downloading and installing latest version of Firefox Developer Edition on Ubuntu/Debian
This file contains 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 | |
# Emoji | |
TICK='\U2714' | |
THUMBS_UP='\U1F44D' | |
DOWN_ARROW='\U2B07' | |
# Colors | |
BRED='\033[1;31m' | |
BGREEN='\033[1;32m' | |
NC='\033[0m' | |
file_name="latest_firefox_dev" | |
# Download latest version of Firefox Developer Edition | |
echo -e "${BGREEN}Downloading the latest version of mozilla firefox developer verison ${DOWN_ARROW} ${NC}\n" | |
wget -O /tmp/$file_name.tar.bz2 "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" | |
echo -e "${BGREEN}Download Complete ${THUMBS_UP} ${NC}\n" | |
# Remove old version of Firefox from /opt | |
echo -e "${BRED}Removing old firefox version ${NC}" | |
rm -rf /opt/firefox | |
echo -e "${BRED}Old version removed successfully !! ${THUMBS_UP} ${NC}\n" | |
# Unzip latest version of Firefox Developer Edition | |
echo -e "${BGREEN}Installing latest firefox developer version${NC}\n" | |
tar -xvf /tmp/$file_name.tar.bz2 -C /opt | |
echo -e "${BGREEN}Done ${TICK} ${NC}\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment