Skip to content

Commit 385d94a

Browse files
committed
Fix OS.exec, but no external behavior change.
1 parent 1f4c860 commit 385d94a

File tree

1 file changed

+2
-2
lines changed
  • durian-swt.os/src/main/java/com/diffplug/common/swt/os

1 file changed

+2
-2
lines changed

durian-swt.os/src/main/java/com/diffplug/common/swt/os/OS.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 DiffPlug
2+
* Copyright (C) 2020-2023 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -153,7 +153,7 @@ private static OS calculateNative(Function<String, String> systemProperty, Funct
153153

154154
private static String exec(String... cmd) {
155155
try {
156-
Process process = Runtime.getRuntime().exec(new String[]{"uname", "-a"});
156+
Process process = Runtime.getRuntime().exec(cmd);
157157
ByteArrayOutputStream output = new ByteArrayOutputStream();
158158
drain(process.getInputStream(), output);
159159
return new String(output.toByteArray(), StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)