From 98112bde4a1c78c63837cacbcb285b4210cd3a28 Mon Sep 17 00:00:00 2001 From: Tangent Date: Tue, 15 Sep 2026 22:30:46 -0600 Subject: [PATCH] close #6 Darwin check only runs on 'Linux' detection This prevents Windows from erroring when trying to run uname. --- lib/utility.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utility.lua b/lib/utility.lua index 9d753db..875b850 100644 --- a/lib/utility.lua +++ b/lib/utility.lua @@ -586,6 +586,8 @@ end -if utility.capture_safe("uname"):find("Darwin") == 1 then utility.OS = "macOS" end +if (utility.OS == "Linux") and (utility.capture_safe("uname"):find("Darwin") == 1) then + utility.OS = "macOS" +end return utility