Merge pull request #95 from Dragon8oy/fix-root-args

Fix arguments being passed while authenticating
This commit is contained in:
Vince 2020-10-18 22:01:18 +08:00 committed by GitHub
commit 0865030039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ install() {
# persisted execution of the script as root
if [[ -n ${tui_root_login} ]] ; then
if [[ -n "${theme}" && -n "${screen}" ]]; then
sudo -S <<< ${tui_root_login} $0 --${theme} --${icon} --${screen} --${custom_background}
sudo -S <<< ${tui_root_login} $0 "${PROG_ARGS[@]}"
fi
else
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s