We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95f8336 commit 792c9d9Copy full SHA for 792c9d9
os/Makefile
@@ -22,7 +22,7 @@ KERNEL_ENTRY_PA := 0x80200000
22
OBJDUMP := rust-objdump --arch-name=riscv64
23
OBJCOPY := rust-objcopy --binary-architecture=riscv64
24
25
-CHAPTER ?= $(shell git rev-parse --abbrev-ref HEAD | grep -oP 'ch\K[0-9]')
+CHAPTER ?= $(shell git rev-parse --abbrev-ref HEAD | sed -E 's/ch([0-9])/\1/')
26
TEST ?= $(CHAPTER)
27
BASE ?= 1
28
0 commit comments