Skip to content

Commit

Permalink
A fix for the previous commit, forgot about substituted variables
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 19, 2019
1 parent 200f818 commit 15fc14a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rake-tasks/crazy_fun/mappings/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +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)
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
end
end
Expand Down

0 comments on commit 15fc14a

Please sign in to comment.