We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0661a commit bf4ae47Copy full SHA for bf4ae47
singlecell/src/org/labkey/singlecell/run/NimbleHelper.java
@@ -711,10 +711,15 @@ private String getVersion(PipelineStepOutput output) throws PipelineJobException
711
throw new PipelineJobException("Unable to find file: " + outFile.getPath());
712
}
713
714
- String ret;
715
- try (BufferedReader reader = Readers.getReader(outFile))
+ String ret = null;
+ try
716
{
717
- ret = reader.readLine();
+ ret = StringUtils.trimToNull(Files.readString(outFile.toPath()));
718
+ if (ret == null)
719
+ {
720
+ throw new PipelineJobException("nimble -v did not output version");
721
+ }
722
+ ret = ret.replaceAll("nimble", "").replaceAll("[\\r\\n]+", "");
723
724
catch (IOException e)
725
0 commit comments