close #6 Darwin check only runs on 'Linux' detection

This prevents Windows from erroring when trying to run uname.
This commit is contained in:
2026-09-15 22:30:46 -06:00
parent 214f82b0b1
commit 98112bde4a
+3 -1
View File
@@ -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 return utility