Skip to content

Commit 1fab789

Browse files
committed
change ci-user/Makefile
1 parent 7c7cce9 commit 1fab789

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci-user/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ else ifeq ($(CHAPTER), 8)
2020
endif
2121

2222
randomize:
23-
find user/src/bin -name "*.rs" | xargs sed -i 's/OK/OK$(RAND)/g'
24-
find user/src/bin -name "*.rs" | xargs sed -i 's/passed/passed$(RAND)/g'
25-
find check -name "*.py" | xargs sed -i 's/OK/OK$(RAND)/g'
26-
find check -name "*.py" | xargs sed -i 's/passed/passed$(RAND)/g'
23+
find user/src/bin -name "*.rs" | xargs perl -pi -e s,OK,OK$(RAND),g
24+
find user/src/bin -name "*.rs" | xargs perl -pi -e s,passed,passed$(RAND),g
25+
find check -name "*.py" | xargs perl -pi -e s,OK,OK$(RAND),g
26+
find check -name "*.py" | xargs perl -pi -e s,passed,passed$(RAND),g
2727

2828
test: randomize
2929
python3 overwrite.py $(CHAPTER)

0 commit comments

Comments
 (0)