From e2ec113e89430025b48b4fcca748a309731a03e2 Mon Sep 17 00:00:00 2001 From: Greg Arakelian Date: Mon, 29 Apr 2024 21:17:32 -0400 Subject: [PATCH] Fix mac arch match --- src/main/java/com/arakelian/jq/NativeLib.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/arakelian/jq/NativeLib.java b/src/main/java/com/arakelian/jq/NativeLib.java index 85ede34..e67f8b3 100644 --- a/src/main/java/com/arakelian/jq/NativeLib.java +++ b/src/main/java/com/arakelian/jq/NativeLib.java @@ -150,9 +150,9 @@ public String getPath() { return "linux-aarch64/"; } } else if (Platform.isMac()) { - if ("aarch64".equalsIgnoreCase("x86_64")) { + if ("aarch64".equalsIgnoreCase(osArch)) { return "darwin-aarch64/"; - } else if ("x86_64".equalsIgnoreCase("x86_64")) { + } else if ("x86_64".equalsIgnoreCase(osArch)) { return "darwin-x86_64/"; } }