Skip to content

Commit

Permalink
Fix shell breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Dec 3, 2024
1 parent 15f3f6e commit ce8ec21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/molecule/dependency/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, config: Config) -> None:
config: An instance of a Molecule config.
"""
self._config = config
self._sh_command: list[str] = []
self._sh_command: str | list[str] = []

def execute_with_retries(self) -> None:
"""Run dependency downloads with retry and timed back-off."""
Expand Down
4 changes: 2 additions & 2 deletions src/molecule/dependency/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, config: Config) -> None:
config: Molecule Config instance.
"""
super().__init__(config)
self._sh_command: list[str] = []
self._sh_command = ""

@property
def command(self) -> str:
Expand All @@ -105,7 +105,7 @@ def default_options(self) -> MutableMapping[str, str | bool]:

def bake(self) -> None:
"""Bake a ``shell`` command so it's ready to execute."""
self._sh_command = [self.command]
self._sh_command = self.command

def execute(self, action_args: list[str] | None = None) -> None: # noqa: ARG002
"""Execute the dependency solver.
Expand Down
2 changes: 1 addition & 1 deletion src/molecule/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def sysexit_with_message(


def run_command( # noqa: PLR0913
cmd: list[str],
cmd: str | list[str],
env: dict[str, str] | None = None,
cwd: Path | None = None,
*,
Expand Down

0 comments on commit ce8ec21

Please sign in to comment.