File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,17 @@ eval "$4"
8
8
# create container file
9
9
if [ " $5 " = ' containerize' ] ; then
10
10
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
15
11
elif [ " $5 " = ' run' ] ; then
16
12
# run snakemake with given args
17
13
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
25
22
fi
26
23
else
27
24
echo " Task input not recognized." && exit 1
You can’t perform that action at this time.
0 commit comments