Skip to content

Commit 12db9aa

Browse files
committed
fix native library load linux
1 parent a48387c commit 12db9aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/propane/native_folder.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ def initialize
2222

2323
def name
2424
return 'macosx' if /darwin|mac/.match?(os)
25-
if /linux/.match?(os)
26-
return format(LINUX_FORMAT, '64') if /amd64/.match?(bit)
27-
return format(LINUX_FORMAT, ARM32) if /arm/.match?(bit)
28-
end
25+
return format(LINUX_FORMAT, bit) if os =~ /linux/
2926
if WIN_PATTERNS.any? { |pat| pat =~ os }
3027
return format(WINDOWS_FORMAT, '64') if /64/.match?(bit)
3128
return format(WINDOWS_FORMAT, '32') if /32/.match?(bit)

0 commit comments

Comments
 (0)