Skip to content

Commit e12cf0f

Browse files
authored
Update INSTALL.md (#5376)
Fix the bug according to Windows branch regulation
1 parent 982b7d3 commit e12cf0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ apt-get install flex bison libssl-dev libelf-dev dwarves bc
289289

290290
First, you will need to checkout the WSL2 Linux kernel git repository:
291291
```
292-
KERNEL_VERSION=$(uname -r | cut -d '-' -f 1)
292+
KERNEL_VERSION=$(uname -r | cut -d '.' -f 1-2 | xargs -I {} echo "{}.y")
293293
git clone --depth 1 https://github.com/microsoft/WSL2-Linux-Kernel.git -b linux-msft-wsl-$KERNEL_VERSION
294294
cd WSL2-Linux-Kernel
295295
```

0 commit comments

Comments
 (0)