Skip to content

Commit 90acd6b

Browse files
maleadtstaticfloat
authored andcommitted
macOS: chmod files before removing them.
1 parent d53350d commit 90acd6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

macos-seatbelt/common.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function generate_launchctl_script(io::IO, brg::BuildkiteRunnerGroup;
178178
""")
179179

180180
for path in host_paths_to_cleanup(temp_path, cache_path)
181+
println(w_io, "chmod -R u+w $(path)")
181182
println(w_io, "rm -rf $(path)")
182183
end
183184

@@ -209,6 +210,7 @@ function generate_launchctl_script(io::IO, brg::BuildkiteRunnerGroup;
209210
# Cleanup host paths
210211
""")
211212
for path in host_paths_to_cleanup(temp_path, cache_path)
213+
println(w_io, "chmod -R u+w $(path)")
212214
println(w_io, "rm -rf $(path)")
213215
end
214216

0 commit comments

Comments
 (0)