File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,10 @@ fetch_generic_linux_sources()
3939 # 4.19.76-linuxkit -> 4.19.76
4040 # 4.14.154-128.181.amzn2.x86_64 -> 4.14.154
4141 # 4.19.76+gcp-something -> 4.19.76
42- kernel_version=" $( echo " ${KERNEL_VERSION} " | awk -vFS=' [-+]' ' { print $1 }' ) "
43- major_version=" $( echo " ${KERNEL_VERSION} " | awk -vFS=. ' { print $1 }' ) "
42+ # 6.6.87.2-microsoft-standard-WSL2 -> 6.6.87
43+ raw_kernel_version=" $( echo " ${KERNEL_VERSION} " | awk -vFS=' [-+]' ' { print $1 }' ) "
44+ kernel_version=" $( echo " ${raw_kernel_version} " | awk -vFS=. ' { print $1.$2.$3 }' ) "
45+ major_version=" $( echo " ${raw_kernel_version} " | awk -vFS=. ' { print $1 }' ) "
4446
4547 # Remove the '.0' as the initial kernel major release isn't published with a patch number.
4648 if [[ $kernel_version == * .0 ]]; then
You can’t perform that action at this time.
0 commit comments