Skip to content

Commit

Permalink
fix: Handle "sh" and "dash" in print_pep582_command (pdm-project#1502)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
  • Loading branch information
cdleonard committed Nov 10, 2022
1 parent 8d51c7b commit 98577c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdm/cli/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def print_pep582_command(ui: termui.UI, shell: str = "AUTO") -> None:
if shell == "AUTO":
shell = shellingham.detect_shell()[0]
shell = shell.lower()
if shell in ("zsh", "bash"):
if shell in ("zsh", "bash", "sh", "dash"):
result = textwrap.dedent(
f"""
if [ -n "$PYTHONPATH" ]; then
Expand Down

0 comments on commit 98577c9

Please sign in to comment.