Skip to content

Commit

Permalink
Use -i instead of piping input into patch
Browse files Browse the repository at this point in the history
  • Loading branch information
cafuego authored and cweagans committed Feb 6, 2023
1 parent b6ceb55 commit 3479704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Patcher/BsdPatchPatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function apply(Patch $patch, string $path): bool
// TODO: Dry run first?
return $this->executeCommand(
'%s -p%s --posix --batch -d %s < %s',
'%s -p%s --posix --batch -d %s -i %s',
$this->patchTool(),
$patch->depth,
$path,
Expand Down
2 changes: 1 addition & 1 deletion src/Patcher/GnuPatchPatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function apply(Patch $patch, string $path): bool
// TODO: Dry run first?
return $this->executeCommand(
'%s -p%s --no-backup-if-mismatch -d %s < %s',
'%s -p%s --no-backup-if-mismatch -d %s -i %s',
$this->patchTool(),
$patch->depth,
$path,
Expand Down

0 comments on commit 3479704

Please sign in to comment.