Skip to content

Commit

Permalink
Yeet.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 3, 2024
1 parent 6a3c4a3 commit bb588b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brew-pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def patchelf(root_dir, prefix_path, binary, format='@executable_path')
lib_paths.each do |lib|
lib_path = (File.realpath(File.join(root_dir, lib)) rescue nil)

if lib_path
if lib_path && lib_path != binary_path
# Obtain the relative path from the executable
lib_relative_path = lib_path.delete_prefix(full_prefix_path)
binary_relative_path = File.dirname(binary_path).delete_prefix(full_prefix_path)
Expand Down

0 comments on commit bb588b5

Please sign in to comment.