augh
This commit is contained in:
@@ -172,6 +172,10 @@ public interface Platform{
|
|||||||
}
|
}
|
||||||
|
|
||||||
String result = OS.exec(args.toArray(String.class));
|
String result = OS.exec(args.toArray(String.class));
|
||||||
|
//first line.
|
||||||
|
if(result.length() > 1 && result.contains("\n")){
|
||||||
|
result = result.split("\n")[0];
|
||||||
|
}
|
||||||
|
|
||||||
//cancelled selection, ignore result
|
//cancelled selection, ignore result
|
||||||
if(result.isEmpty() || result.equals("\n")) return;
|
if(result.isEmpty() || result.equals("\n")) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user