Ignore pre_process_working_file FileSed.fix_line_endings for .xlsx files

This commit is contained in:
2018-04-18 19:47:08 +02:00
parent ebbb206537
commit 18ff5ffcf0
+1
View File
@@ -14,6 +14,7 @@ module Dunlop::FileSed
end
def self.fix_line_endings(filename)
return if filename.to_s.end_with?('.xlsx')
%x[dos2unix -f #{filename} > /dev/null 2>&1]
raise 'error in dos2unix command line' unless $?.exitstatus == 0
%x[dos2unix -f -c mac #{filename} > /dev/null 2>&1]