aboutsummaryrefslogtreecommitdiffstats
path: root/fix-eol
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2007-06-24 20:15:34 +0000
committerAnssi Hannula <anssi@mandriva.org>2007-06-24 20:15:34 +0000
commit950df73f5a66ba95b57a9f752d76d649cbeb7fb1 (patch)
tree11903e91063c9e0b97c64a86fa3d8de5cc1ef4b2 /fix-eol
parent0805449c422c3146279711146db8174832970732 (diff)
downloadspec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar
spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.gz
spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.bz2
spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.tar.xz
spec-helper-950df73f5a66ba95b57a9f752d76d649cbeb7fb1.zip
Add missing parantheses to fix-eol script. Instead of converting
EOL it was corrupting the files
Diffstat (limited to 'fix-eol')
-rw-r--r--fix-eol2
1 files changed, 1 insertions, 1 deletions
diff --git a/fix-eol b/fix-eol
index 6e732f8..7d3bf21 100644
--- a/fix-eol
+++ b/fix-eol
@@ -33,7 +33,7 @@ sub convert {
# process all file
my $out = File::Temp->new(DIR => '.', UNLINK => 0);
print $out $line;
- while ($line = <$in> && defined $line) {
+ while (($line = <$in>) && defined $line) {
$line =~ s/\r\n$/\n/;
print $out $line;
}