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