mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
make.sh: Check free space in the base directory
This makes more sense if we want to support building multiple architectures and if we consider cache and ccache, too. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
2
make.sh
2
make.sh
@@ -387,7 +387,7 @@ prepareenv() {
|
||||
local free_space free_blocks block_size
|
||||
|
||||
# Fetch free blocks
|
||||
read -r free_blocks block_size <<< "$(stat --file-system --format="%a %S" "${BUILD_DIR}")"
|
||||
read -r free_blocks block_size <<< "$(stat --file-system --format="%a %S" "${BASEDIR}")"
|
||||
|
||||
# Calculate free space
|
||||
(( free_space = free_blocks * block_size / 1024 / 1024 ))
|
||||
|
||||
Reference in New Issue
Block a user