Create install-homebrew.sh script

Add a script to install Homebrew for a specified user.
This commit is contained in:
humocs-man
2026-03-14 14:36:01 +01:00
committed by GitHub
parent 586e26444e
commit 8c8845fdbd
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
USER="$1"
sudo -u "$USER" NONINTERACTIVE=1 \
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"