Include RC versions

This commit is contained in:
dbroqua 2018-11-12 13:14:30 +01:00
parent 2f106d0d08
commit 5e7a4fb4bf

View file

@ -2,8 +2,15 @@
GREEN='\033[0;32m'
DEFAULT='\033[0m'
PREFIX='linux-'
EXTENSION='.tar.xz'
KERNEL=$(echo ${1}|cut -d"-" -f 2)
# For RC releases
if [ `expr index ${1} gz` -gt 0 ] ; then
EXTENSION='.tar.gz'
fi
KERNEL=${1}
KERNEL=${KERNEL#$PREFIX}
# Get kernel version from argument
KERNEL=${KERNEL%$EXTENSION}