Add MACOS_SYSTEM_DEBUG
This commit is contained in:
@@ -81,7 +81,8 @@ function main() {
|
|||||||
print 'Will now run the installer.'
|
print 'Will now run the installer.'
|
||||||
local -A colors=() errColors=()
|
local -A colors=() errColors=()
|
||||||
[ -t 1 ] && tput cnorm
|
[ -t 1 ] && tput cnorm
|
||||||
sudo --preserve-env=HOMEBREW_BREW_GIT_REMOTE,HOMEBREW_BREW_CORE_GIT_REMOTE "${tmpdir}/install.sh" "$@"
|
isDebug && export MACOS_SYSTEM_DEBUG=true
|
||||||
|
sudo --preserve-env=HOMEBREW_BREW_GIT_REMOTE,HOMEBREW_BREW_CORE_GIT_REMOTE,MACOS_SYSTEM_DEBUG "${tmpdir}/install.sh" "$@"
|
||||||
[ -t 1 ] && tput civis
|
[ -t 1 ] && tput civis
|
||||||
popd -q
|
popd -q
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ function autoloadZShLib() {
|
|||||||
autoload -Uz "${funcNames[@]}"
|
autoload -Uz "${funcNames[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isDebug() {
|
||||||
|
test "${MACOS_SYSTEM_DEBUG}" = true -o "${MACOS_SYSTEM_DEBUG}" = 1
|
||||||
|
}
|
||||||
|
|
||||||
function configureLogging() {
|
function configureLogging() {
|
||||||
local output=tostdout level=info
|
local output=tostdout level=info
|
||||||
[ -n "${logfile}" ] && output=${logfile}
|
[ -n "${logfile}" ] && output=${logfile}
|
||||||
|
|||||||
Reference in New Issue
Block a user