Fix arguments being passed while authenticating

This commit is contained in:
Stuart Hayhurst 2020-10-18 12:30:38 +01:00
parent f296659e44
commit 59915392a0

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