Skip to content

Commit 0744075

Browse files
authored
Fix upload-pypi.py to work when /bin/sh isn't bash (#6274)
Apparently traditional sh (like that emulated by dash on ubuntu) recognizes '.' but not 'source'.
1 parent df6455a commit 0744075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/upload-pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run(self, cmd: str) -> None:
137137
sys.exit(1)
138138

139139
def run_in_virtualenv(self, cmd: str) -> None:
140-
self.run('source mypy-venv/bin/activate && cd mypy &&' + cmd)
140+
self.run('. mypy-venv/bin/activate && cd mypy &&' + cmd)
141141

142142
def heading(self, heading: str) -> None:
143143
print()

0 commit comments

Comments
 (0)