We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70d347 commit 1b99813Copy full SHA for 1b99813
src/ci/scripts/free-disk-space.sh
@@ -130,17 +130,14 @@ removeUnusedFilesAndDirs() {
130
# a file or directory is removed from the runners.
131
# - Some files and directories don't exist on ARM runners because they have less software
132
# installed than x86 runners.
133
- local existing=()
134
for element in "${to_remove[@]}"; do
135
if [ ! -e "$element" ]; then
136
echo "::warning::Directory or file $element does not exist, skipping."
137
- else
138
- existing+=("$element")
139
fi
140
done
141
142
# Remove all files and directories at once to save time.
143
- sudo rm -rf "${existing[@]}"
+ sudo rm -rf "${to_remove[@]}"
144
}
145
146
execAndMeasureSpaceChange() {
0 commit comments