not using cd in copydot, breaks chained task when further cd's are called
This commit is contained in:
parent
9b52d40a54
commit
aa095689e4
10
Rakefile
10
Rakefile
@ -197,12 +197,10 @@ end
|
|||||||
|
|
||||||
desc "copy dot files for deployment"
|
desc "copy dot files for deployment"
|
||||||
task :copydot do
|
task :copydot do
|
||||||
cd "#{source_dir}" do
|
exclusions = [".", "..", ".DS_Store"]
|
||||||
exclusions = [".", "..", ".DS_Store"]
|
Dir["#{source_dir}/.*"].each do |file|
|
||||||
Dir[".*"].each do |file|
|
if !File.directory?(file) && !exclusions.include?(file)
|
||||||
if !File.directory?(file) && !exclusions.include?(file)
|
cp(file, "#{public_dir}");
|
||||||
cp(file, "../#{public_dir}");
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user