Browse code

Replaces system call with cross-platform cp_r, fixes #200

Frederic Hemberger authored on 16/10/2011 at 11:07:31
Showing 1 changed files
... ...
@@ -230,7 +230,7 @@ multitask :push do
230 230
   (Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) }
231 231
   Rake::Task[:copydot].invoke(public_dir, deploy_dir)
232 232
   puts "\n## copying #{public_dir} to #{deploy_dir}"
233
-  system "cp -R #{public_dir}/* #{deploy_dir}"
233
+  cp_r "#{public_dir}/*", deploy_dir
234 234
   cd "#{deploy_dir}" do
235 235
     system "git add ."
236 236
     system "git add -u"