Skip to content

Commit

Permalink
Merge pull request #147 from kimhmadsen/fix-argument-for-relative_pat…
Browse files Browse the repository at this point in the history
…h_from

Fix argument for relative_path_from()
  • Loading branch information
larsch authored Mar 15, 2020
2 parents 3164eb4 + 9dd4264 commit fbd53dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ocra
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ EOF
elsif defined?(Gem) and gemhome = Gem.path.find { |pth| fullpath.subpath?(pth) }
# Features found in any other Gem path (e.g. ~/.gems) is put
# in a special 'gemhome' folder.
targetpath = GEMHOMEDIR / fullpath.relative_path_from(gemhome)
targetpath = GEMHOMEDIR / fullpath.relative_path_from(Pathname(gemhome))
libs << [fullpath, targetpath]
elsif fullpath.subpath?(src_prefix) || path == working_directory
# Any feature found inside the src_prefix automatically gets
Expand Down

0 comments on commit fbd53dc

Please sign in to comment.