Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ public String getScript() {
scriptEncodingCharset = zOSSystemEncodingCharset.name();
}

ShellController c = new ShellController(ws);
c.isZos = (os == OsType.ZOS);
ShellController c = new ShellController(ws,(os == OsType.ZOS));
FilePath shf = c.getScriptFile(ws);

shf.write(script, scriptEncodingCharset);
Expand Down Expand Up @@ -216,10 +215,15 @@ public String getScript() {
private transient long checkedTimestamp;

/** Caching zOS flag to avoid round trip calls in exitStatus() */
private boolean isZos;

private final boolean isZos;
private ShellController(FilePath ws) throws IOException, InterruptedException {
super(ws);
this.isZos = false;
}
private ShellController(FilePath ws, boolean zOsFlag) throws IOException, InterruptedException {
super(ws);
this.isZos = zOsFlag;
}

public FilePath getScriptFile(FilePath ws) throws IOException, InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@ private static class Watcher implements Runnable {

}

}
}