Permalink
Browse files

Make sed work across OSes

Closes #7
  • Loading branch information...
1 parent 457e9cb commit df106ad8333bb3331b51c935a6838d5a040d5ee4 @mndrix committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Test/Merges.pm
View
@@ -161,7 +161,7 @@ sub merge_ok {
# apply a sed script to a file, modifying it in-place
sub sed {
my ($script, $file) = @_;
- system "sed -i '' '$script' $file";
+ system "sed -ibak '$script' $file";
}
# perform search and replace across an entire file

0 comments on commit df106ad

Please sign in to comment.