diff --git a/bin/init-brew b/bin/init-brew index 9bf168a..a9532e9 100644 --- a/bin/init-brew +++ b/bin/init-brew @@ -2,3 +2,8 @@ sudo mkdir -p /home/linuxbrew sudo mkdir -p $ sudo mount --bind $HOME/.local/share/linuxbrew /home/linuxbrew + +if test ! -f /home/linuxbrew/.linuxbrew/bin/brew; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + sudo wget -P /etc/profile.d https://raw.githubusercontent.com/dnkmmr69420/brew-container/main/profile.d/brew.sh +fi