Skip to content

Commit

Permalink
Merge pull request #41 from seqeralabs/handle_env_variables_within_st…
Browse files Browse the repository at this point in the history
…rings_

Handle any strings with dollar sign as env should be interpreted
  • Loading branch information
adamrtalbot authored Sep 22, 2023
2 parents 8a331b5 + c8d22f1 commit 9c3935c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions twkit/tower.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c3935c

Please sign in to comment.