fir 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fir/tasks.rb +4 -1
- metadata +2 -2
data/lib/fir/tasks.rb
CHANGED
@@ -103,7 +103,10 @@ module Fir
|
|
103
103
|
FileUtils.cp_r(File.join(copy_to, 'cache', '.'), copy_to)
|
104
104
|
FileUtils.rm_rf(File.join(copy_to, 'cache'))
|
105
105
|
['.htaccess', 'dispatch.cgi'].each do |file|
|
106
|
-
File.
|
106
|
+
path = File.join(copy_to, file)
|
107
|
+
if File.exists?(path)
|
108
|
+
File.delete(path)
|
109
|
+
end
|
107
110
|
end
|
108
111
|
# Create a simple .htaccess file to enable pretty URLs
|
109
112
|
htaccess =
|