Skip to content

Commit

Permalink
fix(run): wrap $@ in single quote to echo command in temporary file
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Nov 9, 2021
1 parent 8efe100 commit d5ee3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddb/feature/shell/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def create_binary_shim(self, shims_path: str, name: str, global_: bool):
command.extend(
('shim=$(tempfile -p ddb.run.)',
'echo "rm $shim">>"$shim"',
f'echo $(ddb run {name} \"$@\") "$@">>"$shim"',
f'echo $(ddb run {name} \"$@\") \'\"$@\"\'>>"$shim"',
'source "$shim"')
)

Expand Down

0 comments on commit d5ee3a2

Please sign in to comment.