setup-env: only allow slaves with large amounts of RAM to mount tmpfs

Signed-off-by: Derek Straka <derek@asterius.io>
This commit is contained in:
Derek Straka
2016-11-30 11:13:18 -05:00
parent b828ccaefe
commit 3d70f56ae7
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
#!/bin/bash -e
sudo umount build
# Only attempt to unmount if the directory is already mounted
if mountpoint -q `pwd`/build; then
sudo umount build
fi
exit 0