Skip to content

Commit

Permalink
fix file permission on installed gems - fixes #1989 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Sep 20, 2014
1 parent dd9b0c1 commit 4541de3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pom.rb
Expand Up @@ -224,5 +224,10 @@ def to_pathname
# we do not want rubygems_plugin.rb within jruby
f = File.join( ruby_dir, 'shared', 'rubygems_plugin.rb' )
File.delete( f ) if File.exists?( f )

# fix file permissions of installed gems
( Dir[ File.join( jruby_gems, '**/*' ) ] + Dir[ File.join( jruby_gems, '**/.*' ) ] ).each do |f|
File.chmod( 0644, f ) rescue nil if File.file?( f )
end
end
end

0 comments on commit 4541de3

Please sign in to comment.