1

Remove unnecessary flags from dialog commands

This commit is contained in:
Jessie Hildebrandt 2023-06-02 15:26:45 -04:00
parent de452fa201
commit 1e6b9fa24e

View File

@ -221,7 +221,7 @@ optional_additions=""
function prompt_optional_additions ()
{
ENTRY=$(dialog --title "Optional Additions" --stdout --no-cancel --single-quoted --output-separator '|' \
ENTRY=$(dialog --title "Optional Additions" --stdout --no-cancel --erase-on-exit --single-quoted --output-separator '|' \
--checklist "Select any additional configuration changes that you would like applied to the system:" 0 0 0 \
"Xournal++" "Install Xournal++ for taking handwritten notes" OFF \
"EasyEffects" "Install EasyEffects for applying effects (e.g. equalizers) to system audio devices" OFF \
@ -231,7 +231,7 @@ function prompt_optional_additions ()
case "${ENTRY}" in
"")
if
dialog --keep-window --erase-on-exit --title "Chassis Type" --defaultno --yesno "Apply only baseline system configuration?" 0 0
dialog --title "Chassis Type" --defaultno --yesno "Apply only baseline system configuration?" 0 0
then
return 0
else
@ -241,7 +241,7 @@ function prompt_optional_additions ()
*)
if
ADDITIONS_LIST=$(echo "${ENTRY}" | sed "s/|/\\\\n * /g" | sed "s/'//g")
dialog --keep-window --erase-on-exit --title "Chassis Type" --defaultno --yesno "Confirm your selection of the following additions:\n${ADDITIONS_LIST}" 0 0
dialog --title "Chassis Type" --defaultno --yesno "Confirm your selection of the following additions:\n${ADDITIONS_LIST}" 0 0
then
optional_additions="${ENTRY}"
return 0