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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-09 00:00:23 +02:00
parent c6a9e31816
commit a5ff4a739a
5 changed files with 95 additions and 79 deletions

View File

@@ -28,4 +28,21 @@ color_echo() {
declare msg="${*}"
printf "%b[INFO]%b %s %b" "${c}" "${RES}" "${msg}" "${NL}" | tee -a "${VAR_DIALOG}"
}
#######################################
# Print the current module in plain or colorful format.
# Globals:
# GRE
# VAR_AUTO_INSTALL
# Arguments:
# 1: Modulname
#######################################
info_echo() {
declare module="$1"
if ! "${VAR_AUTO_INSTALL}"; then
echo "MAIN PROGRAM SEQUENCE: ${module} ..."
else
color_echo "${GRE}" "MAIN PROGRAM SEQUENCE: ${module} ..."
fi
}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh