lib/upgrade.rb in dev_tasks-0.0.63 vs lib/upgrade.rb in dev_tasks-0.0.64
- old
+ new
@@ -27,10 +27,12 @@
dest = "./dep/#{File.basename(source_dep)}"
if(!File.exists?(dest))
self.add "<%FileUtils.cp('#{source_dep}','#{dest}')%>"
else
- self.add "<%FileUtils.cp('#{source_dep}','#{dest}')%>" if(File.mtime(source_dep) > File.mtime(dest))
+ if(File.exists?(source_dep))
+ self.add "<%FileUtils.cp('#{source_dep}','#{dest}')%>" if(File.mtime(source_dep) > File.mtime(dest))
+ end
end
}
end
end
end
\ No newline at end of file