lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.30 vs lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.31
- old
+ new
@@ -79,11 +79,11 @@
if target_dir
target_dir = File.join(target_dir, base)
else
target_dir = user_dir
end
- FileUtils.mkdir_p target_dir
- FileUtils.cp plugin_path, target_dir
+ FileUtils.mkdir_p File.join(target_dir, File.dirname(file))
+ FileUtils.cp plugin_path, File.join(target_dir, file)
target_dir.sub!(Dir.pwd+'/', '')
"+ ".green + "#{File.join(target_dir, filename)}"
end
# Remove files from Jekyll's static_files array so it doesn't end up in the