Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5cf7f97

Browse files
Fix non-venv branch always failing
cc202cc put an end to the problem where, when run outside a virtual environment, it would always "succeed", because all "|| echo ..." required to succeed was for the echo command reporting the error to succeed. Unfortunately, that commit created the oppposite problem, causing that case to always fail! This commit fixes it, so it fails when there is an error, and succeeds when there is no error.
1 parent f5da163 commit 5cf7f97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ force_release: clean
4343
python -m build --sdist --wheel; \
4444
else \
4545
python3 -m build --sdist --wheel || \
46-
echo "Use a virtual-env with 'python -m venv env && source env/bin/activate' instead" && \
47-
false; \
46+
{ echo "Use a virtual-env with 'python -m venv env && source env/bin/activate' instead" && false; }; \
4847
fi
4948

5049
# Upload to PyPI and push the tag.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /