Changeset 2459


Ignore:
Timestamp:
May 26, 2014, 9:08:17 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #548: Register Demux and Merge as ended

Exit script if the data for a flow cell can't be found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/DemuxMergeServlet.java

    r2458 r2459  
    588588            Integer runNumber = (Integer)Annotationtype.SEQUENCING_RUN_NUMBER.getAnnotationValue(dc, seqRun);
    589589            script.cmd("RUN_ARCHIVE=`find " + demux_runArchive + " -maxdepth 2 -name " + dataFolder + " -type d -print -quit 2> /dev/null || true`");
     590            script.cmd("if [ -z \"$RUN_ARCHIVE\" ]; then");
     591            script.cmd("echo \"Can't find data folder "+dataFolder+" in " + demux_runArchive + "\" 1>&2");
     592            script.cmd("exit 1");
     593            script.cmd("fi");
    590594            script.cmd("mkdir -p " + demuxName);
    591595            script.newLine();
Note: See TracChangeset for help on using the changeset viewer.