mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-24 08:28:59 -05:00
Fixes #150. Strip leading path before checking for excluded file.
This commit is contained in:
parent
728bdad5ca
commit
1a562b9580
2
Rakefile
2
Rakefile
@ -209,7 +209,7 @@ desc "copy dot files for deployment"
|
||||
task :copydot do
|
||||
exclusions = [".", "..", ".DS_Store"]
|
||||
Dir["#{source_dir}/**/.*"].each do |file|
|
||||
if !File.directory?(file) && !exclusions.include?(file)
|
||||
if !File.directory?(file) && !exclusions.include?(File.basename(file))
|
||||
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user