diff --git a/twkit/tower.py b/twkit/tower.py index d716384..7cbdeac 100644 --- a/twkit/tower.py +++ b/twkit/tower.py @@ -64,9 +64,7 @@ def _tw_run(self, cmd, *args, **kwargs): params_path = kwargs["params_file"] command.append(f"--params-file={params_path}") - full_cmd = " ".join( - arg if arg.startswith("$") else shlex.quote(arg) for arg in command - ) + full_cmd = " ".join(arg if "$" in arg else shlex.quote(arg) for arg in command) logging.debug(f" Running command: {full_cmd}\n") # Skip if --dryrun