Use File.exists? because the build machine is not on Ruby >= 1.9

This commit is contained in:
Corey Johnson 2012-10-09 14:37:10 -07:00
parent df1658e0e7
commit 253e17f1a8

View File

@ -41,7 +41,7 @@ task :install => :build do
usr_bin_path = default_usr_bin_path if usr_bin_path.empty?
end
if !Dir.exists?(usr_bin_path)
if !File.exists?(usr_bin_path)
$stderr.puts "ERROR: Failed to install atom cli tool at '#{usr_bin_path}'"
exit 1
end