V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user