Include RC versions
This commit is contained in:
parent
2f106d0d08
commit
5e7a4fb4bf
1 changed files with 8 additions and 1 deletions
|
@ -2,8 +2,15 @@
|
||||||
|
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
DEFAULT='\033[0m'
|
DEFAULT='\033[0m'
|
||||||
|
PREFIX='linux-'
|
||||||
EXTENSION='.tar.xz'
|
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
|
# Get kernel version from argument
|
||||||
KERNEL=${KERNEL%$EXTENSION}
|
KERNEL=${KERNEL%$EXTENSION}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue