Skip to content

Commit

Permalink
Pass args.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 28, 2023
1 parent 0c38cc5 commit 200ecee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nextgen/vcs-hooks/src/hooks_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<'app> HooksGenerator<'app> {
self.create_file(
&external_path,
format!(
"#!/bin/sh\n{} -NoProfile -ExecutionPolicy Bypass -File '{}'",
"#!/bin/sh\n{} -NoProfile -ExecutionPolicy Bypass -File \"{} $1 $2 $3\"",
powershell_exe, external_command
),
)?;
Expand All @@ -151,7 +151,11 @@ impl<'app> HooksGenerator<'app> {
#[cfg(not(windows))]
{
// pre-commit
self.create_hook_file(&external_path, &[external_command], false)?;
self.create_hook_file(
&external_path,
&[format!("{} $1 $2 $3", external_command)],
false,
)?;
}
}

Expand Down

0 comments on commit 200ecee

Please sign in to comment.