Fixed bug in extension detection
This commit is contained in:
parent
5e7a4fb4bf
commit
a185fc24b1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue