From da7e06e017004703a49f21c35a7cdbabf3d24287 Mon Sep 17 00:00:00 2001 From: r4sas Date: Tue, 20 Dec 2016 20:17:24 +0300 Subject: [PATCH] removed unnecessary things, https for downloading FF --- linux/i2pdbrowserportable.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/linux/i2pdbrowserportable.sh b/linux/i2pdbrowserportable.sh index fbda3c7..6857232 100755 --- a/linux/i2pdbrowserportable.sh +++ b/linux/i2pdbrowserportable.sh @@ -1,21 +1,13 @@ #!/bin/sh arch=$(uname -m) - -# Configure the following default variables according to your requirements -#language="en-US" # e.g. "de" or "en-US" # We will detect language from system! language=$(echo $LANG | cut -c-5 | sed s/_/-/g) -# default if no argument is set: -version="45.6.0esr" # chose from http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/ +version="45.6.0esr" application="firefox" echo "This script prepearing $application $version for use with I2Pd" -#read -n1 -r -p "Press space to continue..." key file="$application-$version.tar.bz2" -url="http://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file" -# or example for firefox nightly: -#file=firefox-32.0a2.en-US.linux-i686.tar.bz2 -#url=http://download.cdn.mozilla.net/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/$file +url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file" dir="$application-portable" mkdir "$dir" @@ -25,7 +17,7 @@ wget -q $url if [ $? -ne 0 ]; then # Not found error, trying to cut language variable language=$(echo $language | cut -c-2) # re-create variable with cutted lang - url="http://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file" + url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file" wget -q $url fi if [ ! -f $file ]; then