V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m0s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m0s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -22,12 +22,13 @@
|
||||
|
||||
### CATCH ARGUMENTS AND DECLARE BASIC VARIABLES.
|
||||
# shellcheck disable=SC2155
|
||||
declare -grx VAR_PARAM_COUNT="$#" # Arguments passed to script.
|
||||
declare -grx VAR_PARAM_STRNG="$*" # Arguments passed to script as string.
|
||||
declare -ag ARY_PARAM_ARRAY=("$@") # Arguments passed to script as an array.
|
||||
declare -grx VAR_SETUP_FILE="${0##*/}" # 'setup.sh'
|
||||
declare -grx VAR_SETUP_PATH="$(cd "$(dirname "${0}")" && pwd)" # '/opt/git/CISS.debian.installer'
|
||||
declare -grx VAR_SETUP_FULL="$(cd "$(dirname "${0}")" && pwd)/${0##*/}" # '/opt/git/CISS.debian.installer/setup.sh'
|
||||
declare -girx VAR_START_TIME="${SECONDS}" # Start time of script execution.
|
||||
declare -grx VAR_PARAM_COUNT="$#" # Arguments passed to script.
|
||||
declare -grx VAR_PARAM_STRNG="$*" # Arguments passed to script as string.
|
||||
declare -ag ARY_PARAM_ARRAY=("$@") # Arguments passed to script as an array.
|
||||
declare -grx VAR_SETUP_FILE="${0##*/}" # 'setup.sh'
|
||||
declare -grx VAR_SETUP_PATH="$(cd "$(dirname "${0}")" && pwd)" # '/opt/git/CISS.debian.installer'
|
||||
declare -grx VAR_SETUP_FULL="$(cd "$(dirname "${0}")" && pwd)/${0##*/}" # '/opt/git/CISS.debian.installer/setup.sh'
|
||||
|
||||
### PRELIMINARY CHECKS.
|
||||
### No ash, dash, ksh, sh.
|
||||
@@ -94,11 +95,11 @@ for arg in "$@"; do case "${arg,,}" in -h|--help) . ./meta_loader_cuv.sh; usa
|
||||
for arg in "$@"; do case "${arg,,}" in -v|--version) . ./meta_loader_cuv.sh; version; exit 0;; esac; done
|
||||
|
||||
### SOURCING MUST SET EARLY VARIABLES. SOURCING COLOR_ECHO() AND GUARD_SOURCING().
|
||||
. ./lib/0010_guard_sourcing.sh # The function guard_sourcing MUST be present in each file to source.
|
||||
. ./lib/0010_source_guard.sh # Wrapper for sourcing modules, libraries, variables.
|
||||
. ./lib/cdi_0005_guard/0005_guard_sourcing.sh # The function guard_sourcing MUST be present in each file to source.
|
||||
. ./lib/cdi_0005_guard/0006_source_guard.sh # Wrapper for sourcing modules, libraries, variables.
|
||||
source_guard "./var/color.var.sh"
|
||||
source_guard "./var/early.var.sh"
|
||||
source_guard "./lib/0004_color_echo.sh"
|
||||
source_guard "./lib/cdi_0010_basic/0010_color_echo.sh"
|
||||
|
||||
### ALL CHECKS DONE. READY TO START THE SCRIPT.
|
||||
color_echo "${GRE}" "ALL CHECKS DONE. READY TO START THE SCRIPT ..."
|
||||
@@ -155,13 +156,13 @@ trap 'trap_int' INT TERM
|
||||
|
||||
### INTERACTIVE MODE NOTES AND KERNEL SELECTION.
|
||||
# TODO: Update 0110_check_kernel.sh & sourcing
|
||||
# TODO: Update 0120_check_provider.sh & sourcing
|
||||
# TODO: Update 0115_check_provider.sh & sourcing
|
||||
#if ! "${VAR_AUTO_INSTALL}"; then check_provider; fi
|
||||
#if ! "${VAR_AUTO_INSTALL}"; then check_kernel; fi
|
||||
|
||||
### Dialog Output for Initialization START.
|
||||
color_echo "${GRE}" "Dialog Output for Initialization START ..."
|
||||
if ! "${VAR_AUTO_INSTALL}"; then . ./lib/0200_dialog_helper.sh && dialog_box; fi
|
||||
if ! "${VAR_AUTO_INSTALL}"; then . ./lib/cdi_0200_dialog/0200_dialog_helper.sh && dialog_box; fi
|
||||
|
||||
### ARGUMENT CHECKS.
|
||||
echo "ARGUMENT CHECKS ..."
|
||||
@@ -206,7 +207,7 @@ mount_partition
|
||||
echo "MAIN PROGRAM SEQUENCE: uuid_logger() ..."
|
||||
uuid_logger
|
||||
|
||||
### DEBOOTSTRAP
|
||||
### DEBOOTSTRAP # TODO: Order of Hostname, Locale, Time before first apt update and Locales individual, certificate
|
||||
echo "MAIN PROGRAM SEQUENCE: func_debootstrap() ..."
|
||||
func_debootstrap
|
||||
echo "MAIN PROGRAM SEQUENCE: configure_system() ..."
|
||||
@@ -283,7 +284,7 @@ exiting_chroot
|
||||
# TODO: Reboot function for Autoinstall
|
||||
|
||||
### Dialog Output for Initialization END
|
||||
if ! "${VAR_AUTO_INSTALL}"; then . ./lib/0200_dialog_helper.sh && dialog_box_cleaner; fi
|
||||
if ! "${VAR_AUTO_INSTALL}"; then . ./lib/cdi_0200_dialog/0200_dialog_helper.sh && dialog_box_cleaner; fi
|
||||
|
||||
declare -gx VAR_SCRIPT_SUCCESS="true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user