Use sudo to start install script in bootstrap

This commit is contained in:
T. R. Bernstein
2025-08-31 20:39:09 +02:00
parent 6e8a619cea
commit a5b0b4ce90

View File

@@ -63,7 +63,7 @@ function removeNewlines() {
} }
function acceptXcodeLicense() { function acceptXcodeLicense() {
xcodebuild -license accept 2> /dev/null sudo xcodebuild -license accept 2> /dev/null
} }
function installCommandLineTools() { function installCommandLineTools() {
@@ -182,7 +182,7 @@ function main() {
print 'Will now run the installer.' print 'Will now run the installer.'
[ -t 1 ] && tput cnorm [ -t 1 ] && tput cnorm
isDebug && export MACOS_SYSTEM_DEBUG=true isDebug && export MACOS_SYSTEM_DEBUG=true
"${tmpdir}/install.sh" "$@" sudo "${tmpdir}/install.sh" "$@"
[ -t 1 ] && tput civis [ -t 1 ] && tput civis
popd -q popd -q
} }