set -e # # run normal mode # echo '' $NXF_RUN | tee stdout [[ `< .nextflow.log grep -c 'Submitted process > foo'` == 1 ]] || false # # RESUME mode # echo '' $NXF_RUN -resume | tee stdout [[ `< .nextflow.log grep -c 'Cached process > foo'` == 1 ]] || false