fir 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- 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 =
|