Skip to content

Commit

Permalink
Fix shell command for bash (python-poetry#1621)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater authored Nov 22, 2019
1 parent e8b6e15 commit de23c5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poetry/utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def activate(self, env): # type: (VirtualEnv) -> None
self._path, ["-i"], dimensions=(terminal.height, terminal.width)
)

c.setecho(False)
if not self._name == "bash":
c.setecho(False)

activate_script = self._get_activate_script()
bin_dir = "Scripts" if WINDOWS else "bin"
activate_path = env.path / bin_dir / activate_script
Expand Down

0 comments on commit de23c5c

Please sign in to comment.