Skip to content

Commit 49ea494

Browse files
[macos] cleanup Homebrew cache after image generation (#8182)
1 parent 46489c2 commit 49ea494

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash -e -o pipefail
2+
###########################################################################
3+
# The script removes local Homebrew cache
4+
#
5+
###########################################################################
6+
7+
rm -rf "$(brew --cache)"

images/macos/templates/macOS-13.anka.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ build {
246246
provisioner "shell" {
247247
scripts = [
248248
"./provision/configuration/configure-hostname.sh",
249+
"./provision/configuration/cleanup-brew.sh",
249250
"./provision/configuration/finalize-vm.sh"
250251
]
251252
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"

0 commit comments

Comments
 (0)