Skip to content

Commit

Permalink
Handle spaces in file path (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
audgirka authored Dec 14, 2023
1 parent 194237c commit ef15f8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export class AnsiblePlaybookRunProvider {
);
return;
}
commandLineArgs.push(playbookFsPath);
// replace spaces in file name with escape sequence '\ '
commandLineArgs.push(playbookFsPath.replace(/(\s)/, "\\ "));
const cmdArgs = commandLineArgs.map((arg) => arg).join(" ");
const [command, runEnv] = withInterpreter(
this.settings,
Expand Down

0 comments on commit ef15f8e

Please sign in to comment.