Skip to content

Commit

Permalink
vm: minor nit in run-command
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Aug 22, 2024
1 parent 7ae6de3 commit 244b531
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def run_command(ctx, name, path, cmd, env=None):
if env is not None:
env_var_list = [env_var for env_var in env]
env_var_str = " ".join(env_var_list)
env_var_str += " &&"
if len(env_var_list) > 0:
env_var_str += " &&"

cmd = "{} \"bash -c '{}cd {} && {}'\"".format(
cmd_base, env_var_str, path, cmd
Expand Down

0 comments on commit 244b531

Please sign in to comment.