V8.00.000.2025.06.17
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:
2025-10-11 22:14:22 +01:00
parent be0a6c7c6a
commit 353568eb69
60 changed files with 2267 additions and 1163 deletions

View File

@@ -12,6 +12,8 @@
#######################################
# Prevent the file to be sourced twice.
# Globals:
# None
# Arguments:
# 1: File to source.
#######################################

View File

@@ -14,6 +14,8 @@ guard_sourcing
#######################################
# Generic safe wrapper for external commands.
# Globals:
# None
# Arguments:
# *: full command (array, quoted!)
# 2: ERR_CONST on failure

View File

@@ -16,6 +16,8 @@ guard_sourcing
# Converts the value of a passed variable to lowercase.
# Example:
# ensure_lowercase "VAR"
# Globals:
# None
# Arguments:
# 1: VARIABLE name only
# Returns:
@@ -40,6 +42,8 @@ readonly -f ensure_lowercase
# Converts the value of a passed variable to uppercase.
# Example:
# ensure_uppercase "VAR"
# Globals:
# None
# Arguments:
# 1: VARIABLE name only
# Returns:
@@ -64,6 +68,8 @@ readonly -f ensure_uppercase
# Removes leading and trailing spaces in the value.
# Example:
# ensure_trimmed "VAR"
# Globals:
# None
# Arguments:
# 1: VARIABLE name only
# Returns:
@@ -89,6 +95,8 @@ readonly -f ensure_trimmed
# Resets the value of the variable to a default value if it is empty or contains only whitespace.
# Example:
# reset_to_default "VAR" "fallback"
# Globals:
# None
# Arguments:
# 1: VARIABLE name only
# 2: Fallback value
@@ -119,6 +127,8 @@ readonly -f reset_to_default
# Checks whether the content of a variable matches a specific regex.
# Example:
# assert_match "FOO" '^[a-z0-9_-]+$'
# Globals:
# None
# Arguments:
# 1: VARIABLE name only
# 2: Regex in 'single quotes'

View File

@@ -14,6 +14,8 @@ guard_sourcing
#######################################
# Function to log a module success message and change pwd to script root.
# Globals:
# None
# Arguments:
# None
#######################################