Fixed bug in extension detection

This commit is contained in:
dbroqua 2018-11-19 10:41:42 +01:00
parent 5e7a4fb4bf
commit a185fc24b1

View File

@ -5,7 +5,8 @@ DEFAULT='\033[0m'
PREFIX='linux-'
EXTENSION='.tar.xz'
# For RC releases
if [ `expr index ${1} gz` -gt 0 ] ; then
if [ `echo ${1} | sed -n "s/gz.*//p" |wc -l` -gt 0 ] ; then
EXTENSION='.tar.gz'
fi