From fa2bef9e97bdb942b31a216ea3992a147cdc4e97 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 9 Oct 2012 14:38:31 -0700 Subject: [PATCH] Replace more File.exists? because the build machine is not on Ruby >= 1.9 --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index afaf6b44a..8e3778d09 100644 --- a/Rakefile +++ b/Rakefile @@ -58,7 +58,7 @@ desc "Creates .atom file if non exists" task "create-dot-atom" do dot_atom_template_path = ATOM_SRC_PATH + "/.atom" replace_dot_atom = false - next if Dir.exists?(DOT_ATOM_PATH) + next if File.exists?(DOT_ATOM_PATH) `rm -rf "#{DOT_ATOM_PATH}"` `mkdir "#{DOT_ATOM_PATH}"` @@ -86,7 +86,7 @@ task "clone-default-bundles" => "create-dot-atom" do for bundle_url in bundle_urls bundle_dir = bundle_url[/([^\/]+?)(\.git)?$/, 1] dest_path = File.join(DOT_ATOM_PATH, "bundles", bundle_dir) - next if Dir.exists? dest_path + next if File.exists? dest_path `git clone --quiet #{bundle_url} #{dest_path}` end end