Skip to content

Commit

Permalink
fix: hooks should be started in the working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed May 24, 2024
1 parent 142233a commit 3779928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn spawn_hooks(cfg: Arc<RtcBuild>, stage: PipelineStage) -> HookHandles {
.map(|hook_cfg| {
let mut command = Command::new(&hook_cfg.command);
command
.current_dir(&cfg.core.working_directory)
.args(&hook_cfg.command_arguments)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
Expand Down

0 comments on commit 3779928

Please # to comment.