Skip to content

Commit e1d136f

Browse files
probably-nebZed Zippy
authored andcommitted
ci: Fix script/clear-target-dir-if-larger-than post #41652 (#42640)
Closes #ISSUE The namespace runners mount the `target` directory to the cache drive, so `rm -rf target` would fail with `Device Busy`. Instead we now do `rm -rf target/* target/.*` to remove all files (including hidden files) from the `target` directory, without removing the target directory itself Release Notes: - N/A *or* Added/Fixed/Improved ...
1 parent d2addb0 commit e1d136f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/clear-target-dir-if-larger-than

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ echo "target directory size: ${current_size_gb}gb. max size: ${max_size_gb}gb"
2121

2222
if [[ ${current_size_gb} -gt ${max_size_gb} ]]; then
2323
echo "clearing target directory"
24-
rm -rf target
24+
rm -rf target/* target/.*
2525
fi

0 commit comments

Comments
 (0)