Skip to content

Commit 1d38b29

Browse files
committed
fix
1 parent 5043ac3 commit 1d38b29

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,14 @@ removeUnusedFilesAndDirs() {
129129
# Azure
130130
"/opt/az"
131131
"/usr/share/az_"*
132+
)
132133

134+
if [ -n "$AGENT_TOOLSDIRECTORY" ]; then
133135
# Environment variable set by GitHub Actions
134-
"$AGENT_TOOLSDIRECTORY"
135-
)
136+
to_remove+=(
137+
"${AGENT_TOOLSDIRECTORY}"
138+
)
139+
fi
136140

137141
for element in "${to_remove[@]}"; do
138142
if [ ! -e "$element" ]; then

0 commit comments

Comments
 (0)