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

@@ -61,6 +61,10 @@ function ensureBinary() {
}
function main() {
if [ -t 0 ]; then
trap "stty $(stty -g)" INT TERM EXIT
stty -echo
fi
local -A colors=() errColors=()
defineColors
id -Gn | grep admin >&! /dev/null || { printError 'This script requires root access. Please run as an admin user.'; return 10 }