V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-07 19:24:19 +02:00
parent b677595f9d
commit 01501f92be
11 changed files with 46 additions and 42 deletions

View File

@@ -44,6 +44,7 @@ dump_vars_exiting() {
### Capture the final snapshot of all variables (excluding '^(BASH|_).*').
# shellcheck disable=SC2155
declare var_dump_vars_final=$(mktemp var_dump_vars_final.XXXXXXXX)
set +x
# shellcheck disable=SC2312
{
@@ -52,6 +53,7 @@ dump_vars_exiting() {
declare -p "${var}" 2>/dev/null
done < <(compgen -v | grep -Ev '^(BASH|_).*')
} | sort >| "${var_dump_vars_final}"
set -x
{
printf "✅ CISS.debian.installer Config Variable Dump. \n"
@@ -60,15 +62,19 @@ dump_vars_exiting() {
printf "===== Initial VAR Environment ===== \n"
} >> "${LOG_VAR}"
set +x
comm -23 "${VAR_DUMP_VARS_INITIAL}" "${var_dump_vars_final}" >> "${LOG_VAR}" || true
set -x
{
printf "\n"
printf "===== Final VAR Environment ===== \n"
} >> "${LOG_VAR}"
set +x
comm -13 "${VAR_DUMP_VARS_INITIAL}" "${var_dump_vars_final}" >> "${LOG_VAR}" || true
set -x
rm -f "${VAR_DUMP_VARS_INITIAL}" "${var_dump_vars_final}"
}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh