Former-commit-id: 47b5394e91a9517af223d81c9a522b5d5121349b
This commit is contained in:
r4sas 2017-03-14 15:03:30 +03:00
parent 72a5f3da0e
commit f3c8f91d20
10 changed files with 28 additions and 25 deletions

View file

@ -8,12 +8,12 @@
arch=$(uname -m)
language=$(echo $LANG | cut -c-5 | sed s/_/-/g)
version="45.7.0esr"
version="45.8.0esr"
application="firefox"
curlfind=$(which curl)
if [ -z $curlfind ]; then
echo "Can't find cURL installed. That script needs it!";
echo "Can't find 'cURL' installed. That script needs it!";
exit 1;
fi
@ -32,11 +32,11 @@ if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
curl -L -f -# -O $url
fi
if [ $? -ne 0 ]; then # Not found error, trying to download english version
echo "[TRY 3] I'll try download Firefox with English language code";
language="en_US"
# re-create variable with cutted lang
url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file"
curl -L -f -# -O $url
echo "[TRY 3] I'll try download Firefox with English language code";
language="en_US"
# re-create lang variable
url="https://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file"
curl -L -f -# -O $url
fi
if [ ! -f $file ]; then
echo "[Error] Can't find downloaded file. Check your internet connectivity."

View file

@ -10,8 +10,8 @@ arch=$(uname -m)
screenfind=$(which screen)
if [ -z $curlfind ]; then
echo "Can't find 'screen' installed. That script needs it!";
exit 1;
echo "Can't find 'screen' installed. That script needs it!";
exit 1;
fi
if [ $arch == "x86_64" ]
@ -19,5 +19,3 @@ if [ $arch == "x86_64" ]
else
screen -Adm -S i2pd ./i2pd-i386 --datadir=.
fi