Skip to content

Commit 041738e

Browse files
authored
fix: correctly fail when printing disk space (#33)
* fix action * du home dir
1 parent 3a68a3b commit 041738e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ if [ "$5" = 'containerize' ] ; then
1010
snakemake --directory $1 --snakefile $2 --show-failed-logs $3 --containerize > Dockerfile
1111
# return disk space usage on failing
1212
if [[ "$?" -ne 0 && "$6" = true ]] ; then
13-
du -h -d3 $1
13+
du -h -d3 $1 && exit 1
1414
fi
1515
elif [ "$5" = 'run' ] ; then
1616
# run snakemake with given args
1717
snakemake --directory $1 --snakefile $2 --show-failed-logs $3
1818
# return disk space usage on failing
1919
if [[ "$?" -ne 0 && "$6" = true ]] ; then
20-
du -h -d3 $1
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
2125
fi
2226
else
2327
echo "Task input not recognized." && exit 1

0 commit comments

Comments
 (0)