Skip to content

Commit 1b99813

Browse files
committed
remove all
1 parent e70d347 commit 1b99813

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ci/scripts/free-disk-space.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,14 @@ removeUnusedFilesAndDirs() {
130130
# a file or directory is removed from the runners.
131131
# - Some files and directories don't exist on ARM runners because they have less software
132132
# installed than x86 runners.
133-
local existing=()
134133
for element in "${to_remove[@]}"; do
135134
if [ ! -e "$element" ]; then
136135
echo "::warning::Directory or file $element does not exist, skipping."
137-
else
138-
existing+=("$element")
139136
fi
140137
done
141138

142139
# Remove all files and directories at once to save time.
143-
sudo rm -rf "${existing[@]}"
140+
sudo rm -rf "${to_remove[@]}"
144141
}
145142

146143
execAndMeasureSpaceChange() {

0 commit comments

Comments
 (0)