From a5b0b4ce9053599ef9e6a9a0e7a32f3bb26c9eae Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Sun, 31 Aug 2025 20:39:09 +0200 Subject: [PATCH] Use sudo to start install script in bootstrap --- bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index c0e968b..9843a34 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -63,7 +63,7 @@ function removeNewlines() { } function acceptXcodeLicense() { - xcodebuild -license accept 2> /dev/null + sudo xcodebuild -license accept 2> /dev/null } function installCommandLineTools() { @@ -182,7 +182,7 @@ function main() { print 'Will now run the installer.' [ -t 1 ] && tput cnorm isDebug && export MACOS_SYSTEM_DEBUG=true - "${tmpdir}/install.sh" "$@" + sudo "${tmpdir}/install.sh" "$@" [ -t 1 ] && tput civis popd -q }