Updated variable names and casing

This commit is contained in:
2025-12-24 18:55:43 -05:00
parent 07caef3f2c
commit 13f87e00dd
4 changed files with 33 additions and 33 deletions

40
menu.sh
View File

@@ -2,17 +2,17 @@
set -euo pipefail
BASEDIR="$(dirname "${0}" | sed "s|^\.|${PWD}|")"
OPTION='start'
baseDir="$(realpath "$(dirname "${0}")")"
option='start'
while [[ ! "${OPTION}" == 'Exit' ]]; do
while [[ ! "${option}" == 'Exit' ]]; do
printf '\033[?47h\033[2J\033[H'
cat << EOF
#######################################
## ##
## $(cat "${BASEDIR}/title") Script ##
## $(cat "${baseDir}/title") Script ##
## ##
## Jean <jean@easthighnerd.net> ##
## ##
@@ -26,9 +26,9 @@ while [[ ! "${OPTION}" == 'Exit' ]]; do
#################
EOF
select OPTION in 'List' 'Configure' 'Pre Install' 'Install' 'WiFi Setup' 'Post Install' 'Finalize' 'Exit'
select option in 'List' 'Configure' 'Pre Install' 'Install' 'WiFi Setup' 'Post Install' 'Finalize' 'Exit'
do
case "${OPTION}" in
case "${option}" in
'List'|'Configure'|'Pre Install'|'Install'|'WiFi Setup'|'Post Install'|'Finalize'|'Exit')
break
;;
@@ -40,20 +40,20 @@ EOF
printf '\033[2J\033[H'
if [[ "${OPTION}" == 'List' ]]; then
"${BASEDIR}/list.sh"
elif [[ "${OPTION}" == 'Configure' ]]; then
"${BASEDIR}/configure.sh"
elif [[ "${OPTION}" == 'Pre Install' ]]; then
"${BASEDIR}/pre-inst.sh"
elif [[ "${OPTION}" == 'Install' ]]; then
"${BASEDIR}/install.sh"
elif [[ "${OPTION}" == 'WiFi Setup' ]]; then
"${BASEDIR}/wifi.sh"
elif [[ "${OPTION}" == 'Post Install' ]]; then
"${BASEDIR}/post-inst.sh"
elif [[ "${OPTION}" == 'Finalize' ]]; then
"${BASEDIR}/finalize.sh"
if [[ "${option}" == 'List' ]]; then
"${baseDir}/list.sh"
elif [[ "${option}" == 'Configure' ]]; then
"${baseDir}/configure.sh"
elif [[ "${option}" == 'Pre Install' ]]; then
"${baseDir}/pre-inst.sh"
elif [[ "${option}" == 'Install' ]]; then
"${baseDir}/install.sh"
elif [[ "${option}" == 'WiFi Setup' ]]; then
"${baseDir}/wifi.sh"
elif [[ "${option}" == 'Post Install' ]]; then
"${baseDir}/post-inst.sh"
elif [[ "${option}" == 'Finalize' ]]; then
"${baseDir}/finalize.sh"
fi
printf '\033[?47h\033[2J\033[H'