mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-17 14:45:01 -05:00
Merge pull request #154 from jcsims/rake_dotcopy_fix
Fixes #150. Strip leading path before checking for excluded file.
This commit is contained in:
commit
41cbe78251
2
Rakefile
2
Rakefile
@ -209,7 +209,7 @@ desc "copy dot files for deployment"
|
|||||||
task :copydot do
|
task :copydot do
|
||||||
exclusions = [".", "..", ".DS_Store"]
|
exclusions = [".", "..", ".DS_Store"]
|
||||||
Dir["#{source_dir}/**/.*"].each do |file|
|
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}"));
|
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user