V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m54s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m54s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -15,9 +15,10 @@ guard_sourcing
|
||||
#######################################
|
||||
# Print-colored text.
|
||||
# Globals:
|
||||
# MAG
|
||||
# NL
|
||||
# RES
|
||||
# WHI
|
||||
# VAR_DIALOG
|
||||
# Arguments:
|
||||
# 1: Color code.
|
||||
# *: Text to print.
|
||||
@@ -28,6 +29,9 @@ color_echo() {
|
||||
declare msg="${*}"
|
||||
printf "%b[INFO]%b%b %s %b%b" "${c}" "${RES}" "${MAG}" "${msg}" "${RES}" "${NL}" | tee -a "${VAR_DIALOG}"
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f color_echo
|
||||
|
||||
#######################################
|
||||
# Print the current module in plain or colorful format.
|
||||
@@ -45,4 +49,7 @@ info_echo() {
|
||||
color_echo "${GRE}" "MAIN PROGRAM SEQUENCE: ${module} ..."
|
||||
fi
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f info_echo
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
@@ -15,11 +15,12 @@ guard_sourcing
|
||||
#######################################
|
||||
# Creates the DIRs, prepares the files and mounting paths for installation.
|
||||
# Globals:
|
||||
# DIR_LOG
|
||||
# LOG_DBS
|
||||
# LOG_ERR
|
||||
# LOG_EXT
|
||||
# LOG_INS
|
||||
# LOG_NIC
|
||||
# LOG_REC
|
||||
# LOG_UID
|
||||
# RECOVERY
|
||||
# TARGET
|
||||
@@ -54,4 +55,7 @@ gen_dir_files() {
|
||||
|
||||
return 0
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f gen_dir_files
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
@@ -15,9 +15,8 @@ guard_sourcing
|
||||
#######################################
|
||||
# Calculates total runtime of the CISS.debian.installer.
|
||||
# Globals:
|
||||
# VAR_END_TIME
|
||||
# SECONDS
|
||||
# VAR_SCRIPT_RUNTIME
|
||||
# VAR_START_TIME
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
@@ -33,4 +32,7 @@ calculate_runtime() {
|
||||
declare -grx VAR_SCRIPT_RUNTIME="$(printf "%02dh %02dm %02ds" "${var_hours}" "${var_minutes}" "${var_seconds}")"
|
||||
return 0
|
||||
}
|
||||
### Prevents accidental 'unset -f'.
|
||||
# shellcheck disable=SC2034
|
||||
readonly -f calculate_runtime
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user