From ac946fe82e61160eb48380df1bfce9561b28cffc Mon Sep 17 00:00:00 2001 From: DitherWither Date: Thu, 22 Aug 2024 17:06:13 +0530 Subject: [PATCH] Try to fix platforms with more than 3 segments in architecture string --- src/platform_ffi.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_ffi.erl b/src/platform_ffi.erl index 5a61c02..e2a6f66 100644 --- a/src/platform_ffi.erl +++ b/src/platform_ffi.erl @@ -8,7 +8,7 @@ os() -> Tokens = string:tokens(ArchitectureString, "-"), unicode:characters_to_binary( case length(Tokens) of - 3 -> lists:nth(3, Tokens); + n when n >= 3 -> lists:nth(3, Tokens); 2 -> lists:nth(2, Tokens) end ).