Hide cursor during installation run
This commit is contained in:
@@ -65,6 +65,7 @@ function main() {
|
|||||||
trap "stty $(stty -g)" INT TERM EXIT
|
trap "stty $(stty -g)" INT TERM EXIT
|
||||||
stty -echo
|
stty -echo
|
||||||
fi
|
fi
|
||||||
|
[ -t 1 ] && tput civis && export TERMINAL_CURSOR_HIDDEN=true
|
||||||
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 }
|
||||||
@@ -78,7 +79,10 @@ function main() {
|
|||||||
ensureBinary 'docopts' ensureDocopts || return
|
ensureBinary 'docopts' ensureDocopts || return
|
||||||
|
|
||||||
print 'Will now run the installer.'
|
print 'Will now run the installer.'
|
||||||
|
local -A colors=() errColors=()
|
||||||
|
[ -t 1 ] && tput cnorm
|
||||||
sudo "${tmpdir}/install.sh" "$@"
|
sudo "${tmpdir}/install.sh" "$@"
|
||||||
|
[ -t 1 ] && tput civis
|
||||||
popd -q
|
popd -q
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ function main() {
|
|||||||
trap "stty $(stty -g)" INT TERM EXIT
|
trap "stty $(stty -g)" INT TERM EXIT
|
||||||
stty -echo
|
stty -echo
|
||||||
fi
|
fi
|
||||||
|
[ -t 1 ] && tput civis && export TERMINAL_CURSOR_HIDDEN=true
|
||||||
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