From 9b3b3b17f9c387982db21ad9480ad4df1c4350a0 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 7 Jan 2023 21:49:51 +0100 Subject: [PATCH] rename parameters --- usr/lib/archboot/installer/base.sh | 6 +++--- usr/lib/archboot/installer/storage.sh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/usr/lib/archboot/installer/base.sh b/usr/lib/archboot/installer/base.sh index 51036a1d9..5179deace 100644 --- a/usr/lib/archboot/installer/base.sh +++ b/usr/lib/archboot/installer/base.sh @@ -27,9 +27,9 @@ _EDITOR="" set_title() { if [[ -e "${LOCAL_DB}" ]]; then - TITLE="Archboot Arch Linux Installation (Local mode) --> https://bit.ly/archboot" + _TITLE="Archboot Arch Linux Installation (Local mode) --> https://bit.ly/archboot" else - TITLE="Archboot Arch Linux Installation (Online mode) --> https://bit.ly/archboot" + _TITLE="Archboot Arch Linux Installation (Online mode) --> https://bit.ly/archboot" fi } @@ -39,7 +39,7 @@ set_title() { # parameters: see dialog(1) # returns: whatever dialog did DIALOG() { - dialog --backtitle "${TITLE}" --aspect 15 "$@" + dialog --backtitle "${_TITLE}" --aspect 15 "$@" return $? } diff --git a/usr/lib/archboot/installer/storage.sh b/usr/lib/archboot/installer/storage.sh index 23da8ccd2..5a2f72dab 100644 --- a/usr/lib/archboot/installer/storage.sh +++ b/usr/lib/archboot/installer/storage.sh @@ -12,7 +12,7 @@ create_special() { fi CANCEL="" #shellcheck disable=SC2086 - dialog ${DEFAULT} --backtitle "${TITLE}" --menu "Manage Software Raid, LVM2 and Luks encryption" 11 60 5 \ + dialog ${DEFAULT} --backtitle "${_TITLE}" --menu "Manage Software Raid, LVM2 and Luks encryption" 11 60 5 \ "1" "Manage Software Raid" \ "2" "Manage LVM2" \ "3" "Manage Luks encryption" \ @@ -48,7 +48,7 @@ _createmd() { fi CANCEL="" #shellcheck disable=SC2086 - dialog ${DEFAULT} --backtitle "${TITLE}" --menu "Manage Software Raid" 12 60 5 \ + dialog ${DEFAULT} --backtitle "${_TITLE}" --menu "Manage Software Raid" 12 60 5 \ "1" "Create Software Raid" \ "2" "Create Partitionable Software Raid" \ "3" "Reset Software Raid" \ @@ -85,7 +85,7 @@ _createlvm() { fi CANCEL="" #shellcheck disable=SC2086 - dialog ${DEFAULT} --backtitle "${TITLE}" --menu "Manage physical volume, volume group or logical volume" 13 60 7 \ + dialog ${DEFAULT} --backtitle "${_TITLE}" --menu "Manage physical volume, volume group or logical volume" 13 60 7 \ "1" "Create Physical Volume" \ "2" "Create Volume Group" \ "3" "Create Logical Volume" \ @@ -123,7 +123,7 @@ _createluks() { fi CANCEL="" #shellcheck disable=SC2086 - dialog ${DEFAULT} --backtitle "${TITLE}" --menu "Manage Luks Encryption" 11 60 5 \ + dialog ${DEFAULT} --backtitle "${_TITLE}" --menu "Manage Luks Encryption" 11 60 5 \ "1" "Create Luks" \ "2" "Reset Luks Encryption completely" \ "3" "Luks Help" \