From 321615496399b91185ec4e4c391e01e45c8afac0 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Wed, 14 May 2008 08:31:58 +0000 Subject: change strategy when recursing files from accepting everything but some exceptions to rejecting everything but files, for more robustness --- fix_eol | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fix_eol') diff --git a/fix_eol b/fix_eol index c546fed..ea14c29 100755 --- a/fix_eol +++ b/fix_eol @@ -23,10 +23,8 @@ $exclude_pattern = qr/$exclude_pattern/; find(\&convert, $buildroot); sub convert { - # skip symlinks - return if -l $_; - # skip directories - return if -d $_; + # skip everything but files + return unless -f $_; # skip binary files return unless -T $_; # skip excluded files -- cgit v1.2.1