Small changes

This commit is contained in:
q3aql 2016-03-03 17:36:46 +01:00
parent 39892541d9
commit 3e4d8289e3

View File

@ -5,9 +5,9 @@
# Created by q3aql (q3aql@openmailbox.org) # Created by q3aql (q3aql@openmailbox.org)
# Builds by John Van Sickle (john.vansickle@gmail.com) # Builds by John Van Sickle (john.vansickle@gmail.com)
# Licensed by GPL v.2 # Licensed by GPL v.2
# Date: 01-03-2016 # Date: 03-03-2016
# -------------------------------------- # --------------------------------------
VERSION=1.1 VERSION=1.1.1
URL=http://johnvansickle.com/ffmpeg/ URL=http://johnvansickle.com/ffmpeg/
URL_RELEASES=http://johnvansickle.com/ffmpeg/releases/ URL_RELEASES=http://johnvansickle.com/ffmpeg/releases/
@ -60,6 +60,7 @@ esac
wget --help > /dev/null wget --help > /dev/null
if [ "$?" -eq 0 ] ; then if [ "$?" -eq 0 ] ; then
APP_DOWNLOAD='wget -c' APP_DOWNLOAD='wget -c'
NAME_APP_DOWNLOAD="wget"
else else
echo "wget disabled" echo "wget disabled"
fi fi
@ -67,6 +68,7 @@ esac
axel --help > /dev/null axel --help > /dev/null
if [ "$?" -eq 0 ] ; then if [ "$?" -eq 0 ] ; then
APP_DOWNLOAD='axel' APP_DOWNLOAD='axel'
NAME_APP_DOWNLOAD="axel"
else else
echo "axel disabled" echo "axel disabled"
fi fi
@ -74,6 +76,7 @@ esac
aria2c --help > /dev/null aria2c --help > /dev/null
if [ "$?" -eq 0 ] ; then if [ "$?" -eq 0 ] ; then
APP_DOWNLOAD='aria2c --check-certificate=false' APP_DOWNLOAD='aria2c --check-certificate=false'
NAME_APP_DOWNLOAD="aria2c"
else else
echo "aria2c disabled" echo "aria2c disabled"
fi fi
@ -110,7 +113,7 @@ case $1 in
URL_PACKAGE=`cat $TMP_DIR/ffmpeg-url` URL_PACKAGE=`cat $TMP_DIR/ffmpeg-url`
NAME_PACKAGE=`cat /tmp/ffmpeg-url | cut -d "/" -f 6` NAME_PACKAGE=`cat /tmp/ffmpeg-url | cut -d "/" -f 6`
clear clear
echo "Downloading $NAME_PACKAGE ($APP_DOWNLOAD)" echo "Downloading $NAME_PACKAGE ($NAME_APP_DOWNLOAD)"
$APP_DOWNLOAD $URL_PACKAGE $APP_DOWNLOAD $URL_PACKAGE
if [ "$?" -eq 0 ] ; then if [ "$?" -eq 0 ] ; then
echo "OK" > /dev/null echo "OK" > /dev/null