Skip to content

Commit 792c9d9

Browse files
author
田凯夫
committed
Fix sed on MacOS
1 parent 95f8336 commit 792c9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ KERNEL_ENTRY_PA := 0x80200000
2222
OBJDUMP := rust-objdump --arch-name=riscv64
2323
OBJCOPY := rust-objcopy --binary-architecture=riscv64
2424

25-
CHAPTER ?= $(shell git rev-parse --abbrev-ref HEAD | grep -oP 'ch\K[0-9]')
25+
CHAPTER ?= $(shell git rev-parse --abbrev-ref HEAD | sed -E 's/ch([0-9])/\1/')
2626
TEST ?= $(CHAPTER)
2727
BASE ?= 1
2828

0 commit comments

Comments
 (0)