Skip to content

Commit

Permalink
Logging file and dir permissions to diagnose ruby build failure on tr…
Browse files Browse the repository at this point in the history
…avis
  • Loading branch information
barancev committed Sep 19, 2019
1 parent 8a06a59 commit 200f818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rake-tasks/crazy_fun/mappings/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ 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#{f}\n", (File.stat(file).mode & 07777)
printf "%04o\t#{f}\n", (File.stat(File.dirname(destination)).mode & 07777)
printf "%04o\t#{f}\n", (File.stat(destination).mode & 07777)
cp_r file, destination, remove_destination: true
end
end
Expand Down

0 comments on commit 200f818

Please sign in to comment.