Skip to content

Commit b7cde0d

Browse files
committed
Paths - prefer /usr/bin/erl to erl on linux
1 parent e25ce33 commit b7cde0d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/server/ruby/paths.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ def self.erlang_boot_path
195195
# "sh"
196196
File.absolute_path("#{native_path}/erlang/erl")
197197
else
198-
"erl"
198+
nix_erl_path = "/usr/bin/erl"
199+
if File.exist?(nix_erl_path)
200+
nix_erl_path
201+
else
202+
"erl"
203+
end
199204
end
200205
end
201206

0 commit comments

Comments
 (0)