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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user