1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Removed stupid check for output file in executables.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@344 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-02-04 06:28:40 +00:00
parent 184ede3c6f
commit f83d64947b

View file

@ -66,12 +66,10 @@ module Haml
exit 1 exit 1
end end
[input, output].each do |file| if input.is_a?(String) && !input.exists?(file)
if file.is_a?(String) && !File.exists?(file)
puts "File #{file} doesn't exist!" puts "File #{file} doesn't exist!"
exit 1 exit 1
end end
end
unless input.is_a? IO unless input.is_a? IO
input = File.open(input) input = File.open(input)