File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 18
18
if [ $ACK -eq 0 ]; then
19
19
first_char=${VERSION: 0: 1}
20
20
21
+ # Strip any leading 'v'
21
22
if [ $first_char == v ]; then
22
23
VERSION=${VERSION: 1}
23
24
fi
24
-
25
25
first_char=${VERSION: 0: 1}
26
26
27
+ # If patch version is 'y', we need to find the latest version of the major.minor release
28
+ last_char=${VERSION: -1: 1}
29
+ if [ $last_char == y ]; then
30
+ major_minor=${VERSION: 0:- 1}
31
+ VERSION=$( curl -s $LINUX_URL /v${first_char} .x/ | sed -e ' s/<[^>]*>//g' | grep -oP " linux-${major_minor} [0-9]+" | sort -r -V | head -n1 | cut -d ' -' -f2)
32
+ fi
33
+
34
+ echo " Downloading kernel version $VERSION "
35
+
27
36
if [ $first_char -ge $MIN_VERSION ] && [ $first_char -le $MAX_VERSION ]; then
28
37
wget $LINUX_URL /v${first_char} .x/linux-$VERSION .tar.xz
29
38
tar -xf linux-$VERSION .tar.xz
You can’t perform that action at this time.
0 commit comments