Skip to content

Commit

Permalink
Replace gem path string as-is, no regex
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 26, 2023
1 parent eefc0dd commit c14d982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def installer.ensure_required_ruby_version_met; end
spec.executables.each do |f|
bin = Dir.glob(File.join( gems, "#{gem_name}*", spec.bindir ))[0]
source = File.join( bin, f )
target = File.join( bin_stubs, source.sub( /#{gems}/, '' ) )
target = File.join( bin_stubs, source.sub( gems, '' ) )
log "copy #{f} to #{target}"
FileUtils.mkdir_p( File.dirname( target ) )
FileUtils.cp_r( source, target )
Expand Down

0 comments on commit c14d982

Please sign in to comment.