#!/usr/bin/env sh # # Install Firefox Developer Edition # # Parameters SHARE="$1" LIB="$2" # Include basic functions . $LIB/trashman/functions || exit 1 # Requirements trashman_require wget # Additional parameters #URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=pt-BR" URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64" FILE="firefox-dev-latest.tar.bz" # Working folder CWD="`pwd`" WORK="`mktemp -d`" || exit 1 cd $WORK &> /dev/null # Get the code wget "$URL" -O $FILE || exit 1 tar xvf $FILE || exit 1 cd $CWD mkdir -p $HOME/.local/share || exit 1 cd $HOME/.local/share &> /dev/null || exit 1 rm -rf firefox-dev || exit 1 mv $WORK/firefox firefox-dev || exit 1 rm -rf $WORK || exit 1 # Create symlink to scripts mkdir -p $HOME/.local/bin || exit 1 cd $HOME/.local/bin &> /dev/null || exit 1 ln -sf $HOME/.local/share/firefox-dev/firefox firefox-dev || exit 1