Skip to content

Commit

Permalink
Fixing permission denied error in another code path
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 19, 2019
1 parent 15fc14a commit 8264e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rake-tasks/crazy_fun/mappings/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def copy_resources(dir, to_copy, out_dir)
else
dest = File.join(out_dir, to)
mkdir_p File.dirname(dest)
cp_r target, dest
cp_r target, dest, remove_destination: true
end
else
tdir = to.gsub(/\/.*?$/, "")
Expand Down
5 changes: 1 addition & 4 deletions rake-tasks/crazy_fun/mappings/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def copy_sources(dir, globs)
Dir[File.join(dir, glob)].each do |file|
destination = destination_for(file)
mkdir_p File.dirname(destination)
printf "%04o\t#{file}\n", (File.stat(file).mode & 07777)
printf "%04o\t#{File.dirname(destination)}\n", (File.stat(File.dirname(destination)).mode & 07777)
printf "%04o\t#{destination}\n", (File.stat(destination).mode & 07777)
cp_r file, destination, remove_destination: true
cp_r file, destination
end
end
end
Expand Down

0 comments on commit 8264e39

Please sign in to comment.