Small fixes

This commit is contained in:
crschnick 2024-06-28 18:44:40 +00:00
parent d2c56c0acd
commit d6d5c8162f
3 changed files with 7 additions and 3 deletions

View file

@ -90,7 +90,7 @@ public class BrowserStatusBarComp extends SimpleComp {
return p.getName();
}
});
var progressComp = new LabelComp(text).styleClass("progress").apply(struc -> struc.get().setAlignment(Pos.CENTER_LEFT)).prefWidth(250);
var progressComp = new LabelComp(text).styleClass("progress").apply(struc -> struc.get().setAlignment(Pos.CENTER_LEFT)).prefWidth(180);
return progressComp;
}

View file

@ -70,8 +70,7 @@ public class ScriptHelper {
content += nl + postInit.stream().flatMap(s -> s.lines()).collect(Collectors.joining(nl)) + nl;
if (exit) {
// Assign exit code 0 to prevent terminals from doing their own pause error handling for failed commands
content += nl + t.getNormalExitCommand();
content += nl + t.getPassthroughExitCommand();
}
return createExecScript(t, processControl, new FilePath(t.initFileName(processControl)), content);

View file

@ -44,6 +44,11 @@ public class BeaconConfig {
}
public static int getUsedPort() {
var beaconPort = System.getenv("BEACON_PORT");
if (beaconPort != null && !beaconPort.isBlank()) {
return Integer.parseInt(beaconPort);
}
if (System.getProperty(BEACON_PORT_PROP) != null) {
return Integer.parseInt(System.getProperty(BEACON_PORT_PROP));
}