Disable tty echo during installation run

This commit is contained in:
Rezart Qelibari
2022-03-14 00:10:25 +01:00
parent 0a604dbd69
commit 471d41bf11
2 changed files with 8 additions and 0 deletions

View File

@@ -72,6 +72,10 @@ function checkPrerequisites() {
}
function main() {
if [ -t 0 ]; then
trap "stty $(stty -g)" INT TERM EXIT
stty -echo
fi
autoloadZShLib || return
checkPrerequisites || return
eval "`docopts -f -V - -h - : "$@" <<- USAGE