Skip to content

Commit

Permalink
Use -E instead of -r
Browse files Browse the repository at this point in the history
The BSD version of sed doesn't support -r, but -E seems universally
supported.
  • Loading branch information
TheLocehiliosan committed Dec 30, 2020
1 parent 1f82ccc commit 207e0a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ scripthost: require-docker .testyadm
testenv:
@echo 'Creating a local virtual environment in "testenv/"'
@echo
@rm -rf testenv
python3 -m venv --clear testenv
testenv/bin/pip3 install --upgrade pip setuptools
testenv/bin/pip3 install --upgrade -r test/requirements.txt;
@for v in $$(sed -rn -e 's:.*/yadm-([0-9.]+)$$:\1:p' test/Dockerfile); do \
@for v in $$(sed -En -e 's:.*/yadm-([0-9.]+)$$:\1:p' test/Dockerfile); do \
git show $$v:yadm > testenv/bin/yadm-$$v; \
chmod +x testenv/bin/yadm-$$v; \
done
Expand Down

0 comments on commit 207e0a9

Please sign in to comment.