V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 41s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Header, Footer wrapper for dynamically output.
|
# Header, Footer wrapper for dynamically output.
|
||||||
|
# Globals:
|
||||||
|
# none
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# 1: Text.
|
# 1: Text.
|
||||||
# 2: Width of Terminal.
|
# 2: Width of Terminal.
|
||||||
@@ -25,8 +27,10 @@ center() {
|
|||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Usage Wrapper 'CISS.debian.installer'.
|
# Usage Wrapper 'CISS.debian.installer'.
|
||||||
|
# Globals:
|
||||||
|
# none
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# $0: Script Name
|
# 0: Script Name
|
||||||
#######################################
|
#######################################
|
||||||
usage() {
|
usage() {
|
||||||
# shellcheck disable=SC2155
|
# shellcheck disable=SC2155
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ contact() {
|
|||||||
cat << EOF
|
cat << EOF
|
||||||
$(echo -e "\e[97m################################################################################ \e[0m")
|
$(echo -e "\e[97m################################################################################ \e[0m")
|
||||||
$(echo -e "\e[92m CISS.debian.installer from https://git.coresecret.dev/msw \e[0m")
|
$(echo -e "\e[92m CISS.debian.installer from https://git.coresecret.dev/msw \e[0m")
|
||||||
$(echo -e "\e[92m Provides a fully automated and hardened installation process.\e[0m")
|
$(echo -e "\e[92m A powerful Debian installer for setting up a hardened Debian environment. \e[0m")
|
||||||
|
|
||||||
$(echo -e "\e[97m (c) Marc S. Weidner, 2018 - 2025 \e[0m")
|
$(echo -e "\e[97m (c) Marc S. Weidner, 2018 - 2025 \e[0m")
|
||||||
$(echo -e "\e[97m (p) Centurion Press, 2024 - 2025 \e[0m")
|
$(echo -e "\e[97m (p) Centurion Press, 2024 - 2025 \e[0m")
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ version() {
|
|||||||
cat << EOF
|
cat << EOF
|
||||||
$(echo -e "\e[97m################################################################################ \e[0m")
|
$(echo -e "\e[97m################################################################################ \e[0m")
|
||||||
$(echo -e "\e[92m CISS.debian.installer from https://git.coresecret.dev/msw \e[0m")
|
$(echo -e "\e[92m CISS.debian.installer from https://git.coresecret.dev/msw \e[0m")
|
||||||
$(echo -e "\e[92m Provides a fully automated and hardened installation process.\e[0m")
|
$(echo -e "\e[92m A powerful Debian installer for setting up a hardened Debian environment. \e[0m")
|
||||||
|
|
||||||
Version : ${VAR_VERSION}
|
Version : ${VAR_VERSION}
|
||||||
Git : ${var_repo_ver}
|
Git : ${var_repo_ver}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ debug_trace() {
|
|||||||
### Open file descriptor 42 for writing to the debug log
|
### Open file descriptor 42 for writing to the debug log
|
||||||
exec 42>| "${LOG_TRC}"
|
exec 42>| "${LOG_TRC}"
|
||||||
### Write Debug Log Header https://www.gnu.org/software/bash/manual/html_node/Bash-Variables
|
### Write Debug Log Header https://www.gnu.org/software/bash/manual/html_node/Bash-Variables
|
||||||
debug_header "$#" "$*"
|
debug_trace_header "$#" "$*"
|
||||||
### Tell Bash to send xtrace output to FD 42
|
### Tell Bash to send xtrace output to FD 42
|
||||||
export BASH_XTRACEFD=42
|
export BASH_XTRACEFD=42
|
||||||
### Enable inheritable shell options
|
### Enable inheritable shell options
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ declare -grx LOG_DBG="${DIR_LOG}/ciss_debian_installer_$$_debug.log"
|
|||||||
### Generates empty LOG_DBG
|
### Generates empty LOG_DBG
|
||||||
touch "${LOG_DBG}" && chmod 0600 "${LOG_DBG}"
|
touch "${LOG_DBG}" && chmod 0600 "${LOG_DBG}"
|
||||||
### Write Debug Log Header https://www.gnu.org/software/bash/manual/html_node/Bash-Variables
|
### Write Debug Log Header https://www.gnu.org/software/bash/manual/html_node/Bash-Variables
|
||||||
debug_trace_header "$#" "$*"
|
debug_trap_header "$#" "$*"
|
||||||
### Define patterns and mask replacements
|
### Define patterns and mask replacements
|
||||||
declare -Ag MASK_PATTERNS=(
|
declare -Ag MASK_PATTERNS=(
|
||||||
["API_KEY"]="********"
|
["API_KEY"]="********"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
# $1: Argument Counter $#
|
# $1: Argument Counter $#
|
||||||
# $2: Argument String $*
|
# $2: Argument String $*
|
||||||
#######################################
|
#######################################
|
||||||
debug_trace_header() {
|
debug_trap_header() {
|
||||||
declare -r arg_counter="$1"
|
declare -r arg_counter="$1"
|
||||||
declare -r arg_string="$2"
|
declare -r arg_string="$2"
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
|
|||||||
Reference in New Issue
Block a user