Skip to content

Commit 85aa2d3

Browse files
authored
fix: fix first homebrew install errors
1 parent 7339b91 commit 85aa2d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/kubernetes/homelab-workspace/script-prepare-workspace.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ install_homebrew() {
1010
# we don't want to give any users within the coder workspace the ability to sudo, so this is a workaround
1111
# see: https://github.com/Homebrew/install/blob/7e3a5202cd6d783a2464e387433c4c72acdb0f49/install.sh#L366
1212
touch /.dockerenv
13+
# create cache dir if it does not exist
14+
mkdir -p "/home/${brew_user}/.cache/Homebrew"
1315
HOME="/home/${brew_user}" NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1416
}
1517

0 commit comments

Comments
 (0)