Skip to content

Commit ed61e72

Browse files
authored
Update packer/linux/conf/bin/bk-check-disk-space.sh
1 parent a6998c9 commit ed61e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packer/linux/conf/bin/bk-check-disk-space.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ $disk_avail -lt $DISK_MIN_AVAILABLE ]]; then
1616
disk_avail_human=$(numfmt --to=iec-i --suffix=B --from-unit=1024 "${disk_avail}")
1717
echo "Not enough disk space free: ${disk_avail_human} (${disk_avail}KB) available, cutoff is ${disk_min_human} (${DISK_MIN_AVAILABLE}KB) 🚨" >&2
1818

19-
# Last resort to clear space with build directory cleanup (if enabled)
19+
# Last resort for clearing space with build directory cleanup (if enabled)
2020
if [[ "${BUILDKITE_PURGE_BUILDS_ON_DISK_FULL:-false}" == "true" ]]; then
2121
echo "Purging all build directories to reclaim disk space..."
2222
rm -rf "${BUILDKITE_AGENT_BUILD_PATH:-/var/lib/buildkite-agent/builds}"/*

0 commit comments

Comments
 (0)