Last active
January 28, 2022 12:36
-
-
Save MaskeZen/2ae4b5096ebbcabceb13084d41b9f4c3 to your computer and use it in GitHub Desktop.
Script para instalar o actualizar el firefox dev
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 | |
# Script para instalar o actualizar el firefox dev | |
# 2022/01/22 [email protected] | |
sudo echo "Descargar Firefox Developer Edition" | |
curl -L "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=es-ES" -o "firefox-dev.tar.bz2" | |
# Descomprimir en el directorio opt para que pueda ser accesible | |
sudo tar -xvf firefox-dev.tar.bz2 -C /opt/ | |
# Se elimina el tar descargado | |
rm firefox-dev.tar.bz2 | |
# Se despliega la versión de Firefox Developer Edition | |
echo "" | |
echo "----------------------" | |
/opt/firefox/firefox --version | |
echo "----------------------" | |
echo "" | |
# Se ejecuta en segundo plano | |
/opt/firefox/firefox & &>> ~/Downloads/firefox-dev.log |
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 | |
# Script para instalar o actualizar el firefox dev | |
# 2020/01/09 [email protected] | |
# | |
fileout="./firefox-dev.tar.bz2" | |
folder_tmp="firefox" | |
folder_fin="/opt/firefox-developer" | |
wget -O $fileout --content-disposition "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" | |
tar -xvf $fileout | |
echo "copiando a la carpeta final $folder_fin" | |
sudo cp -rfv $folder_tmp/* $folder_fin | |
echo "Eliminando archivo temporal $folder_tmp" | |
rm -rf $fileout | |
echo "Eliminando carpeta temporal $folder_tmp" | |
rm -rf $folder_tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment