Skip to content

Commit f887eaf

Browse files
committed
fix size check to exclude mounts
1 parent aed31e1 commit f887eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/container_software.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ echo "##################"
99
echo "# Container size #"
1010
echo "##################"
1111

12-
cd / && NUMGB=$(du -sh 2> /dev/null | grep -oE '[0-9]*G' | grep -oE '[0-9]*')
12+
cd / && NUMGB=$(du -sh --exclude "raid" 2> /dev/null | grep -oE '[0-9]*G' | grep -oE '[0-9]*')
13+
echo "Size of container is: $NUMGB GB"
1314
if [ $NUMGB -ge 15 ]; then echo "Size of container exceeds 15GB, failed build." && exit 1 ; fi;
1415

1516

0 commit comments

Comments
 (0)