File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,20 +8,17 @@ eval "$4"
88# create container file
99if [ " $5 " = ' containerize' ] ; then
1010 snakemake --directory $1 --snakefile $2 --show-failed-logs $3 --containerize > Dockerfile
11- # return disk space usage on failing
12- if [[ " $? " -ne 0 && " $6 " = true ]] ; then
13- du -h -d3 $1 && exit 1
14- fi
1511elif [ " $5 " = ' run' ] ; then
1612 # run snakemake with given args
1713 snakemake --directory $1 --snakefile $2 --show-failed-logs $3
18- # return disk space usage on failing
19- if [[ " $? " -ne 0 && " $6 " = true ]] ; then
20- df -h
21- echo " du home\n"
22- du -h -d3 /github/home
23- echo " du working directory\n"
24- du -h -d3 $1 && exit 1
14+ if [[ " $? " -ne 0 ]]; then
15+ if [[ " $6 " = true ]]; then
16+ # return disk usage and space on failing
17+ df -h
18+ printf " disk usage working directory"
19+ du -h -d3 $1
20+ fi
21+ exit 1
2522 fi
2623else
2724 echo " Task input not recognized." && exit 1
You can’t perform that action at this time.
0 commit comments