close #6 Darwin check only runs on 'Linux' detection
This prevents Windows from erroring when trying to run uname.
This commit is contained in:
1 parent
214f82b0b1
commit
98112bde4a
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user