Use -E instead of -r
The BSD version of sed doesn't support -r, but -E seems universally supported.
This commit is contained in:
parent
1f82ccc2b9
commit
207e0a9850
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue