Disable tty echo during installation run
This commit is contained in:
@@ -61,6 +61,10 @@ function ensureBinary() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
if [ -t 0 ]; then
|
||||||
|
trap "stty $(stty -g)" INT TERM EXIT
|
||||||
|
stty -echo
|
||||||
|
fi
|
||||||
local -A colors=() errColors=()
|
local -A colors=() errColors=()
|
||||||
defineColors
|
defineColors
|
||||||
id -Gn | grep admin >&! /dev/null || { printError 'This script requires root access. Please run as an admin user.'; return 10 }
|
id -Gn | grep admin >&! /dev/null || { printError 'This script requires root access. Please run as an admin user.'; return 10 }
|
||||||
|
|||||||
@@ -72,6 +72,10 @@ function checkPrerequisites() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
if [ -t 0 ]; then
|
||||||
|
trap "stty $(stty -g)" INT TERM EXIT
|
||||||
|
stty -echo
|
||||||
|
fi
|
||||||
autoloadZShLib || return
|
autoloadZShLib || return
|
||||||
checkPrerequisites || return
|
checkPrerequisites || return
|
||||||
eval "`docopts -f -V - -h - : "$@" <<- USAGE
|
eval "`docopts -f -V - -h - : "$@" <<- USAGE
|
||||||
|
|||||||
Reference in New Issue
Block a user