macos fixes

This commit is contained in:
crschnick
2023-10-07 17:19:23 +00:00
parent f277cc0a37
commit ee41792491
4 changed files with 34 additions and 13 deletions
@@ -218,7 +218,7 @@ public sealed interface OsType permits OsType.Windows, OsType.Linux, OsType.MacO
@Override
public Map<String, String> getProperties(ShellControl pc) throws Exception {
try (CommandControl c =
pc.subShell(ShellDialects.BASH).command("sw_vers").start()) {
pc.command("sw_vers").start()) {
var text = c.readStdoutOrThrow();
return PropertiesFormatsParser.parse(text, ":");
}