V8.13.392.2025.11.07
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m22s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m22s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
# SPDX-Security-Contact: security@coresecret.eu
|
||||
# shellcheck disable=SC2155,SC2034
|
||||
|
||||
guard_sourcing || return "${ERR_GUARD_SRCE}"
|
||||
if declare -F guard_sourcing >/dev/null 2>&1; then
|
||||
|
||||
guard_sourcing || return "${ERR_GUARD_SRCE}"
|
||||
|
||||
fi
|
||||
|
||||
### Definition of MUST set global variables.
|
||||
declare -gr VAR_KERNEL_INF="$(mktemp)"
|
||||
@@ -55,6 +59,19 @@ declare -gx VAR_SIGNING_KEY_PASS=""
|
||||
declare -gx VAR_SIGNING_KEY_PASSFILE=""
|
||||
declare -gx VAR_SIGNING_KEY=""
|
||||
|
||||
### Definition of color variables.
|
||||
declare -grx BLA='\e[90m' # Beautiful black for the techno fans.
|
||||
declare -grx RED='\e[91m' # Bright red.
|
||||
declare -grx GRE='\e[92m' # Vibrant green.
|
||||
declare -grx YEL='\e[93m' # Fancy yellow
|
||||
declare -grx BLU='\e[94m' # Organic blue.
|
||||
declare -grx MAG='\e[95m' # Super gay magenta.
|
||||
declare -grx CYA='\e[96m' # Lovely cyan.
|
||||
declare -grx WHI='\e[97m' # Fantastic color mix.
|
||||
declare -grx RES='\e[0m' # Forget everything.
|
||||
declare -grx TAB='\t' # Insert a fresh tabulator.
|
||||
declare -grx NL='\n' # Print a crystal clear new line.
|
||||
|
||||
### Definition of error codes.
|
||||
declare -gir ERR_UNCRITICAL=127
|
||||
declare -gir ERR_NOT_USER_0=128 # Not running as root
|
||||
@@ -76,6 +93,7 @@ declare -gir ERR_PASS_LENGH=210 # --root-password-file password MUST be between
|
||||
declare -gir ERR_PASS_PLICY=211 # --root-password-file password MUST NOT contain double quotes
|
||||
declare -gir ERR__SSH__PORT=212 # --ssh-port MUST be an integer between '1' and '65535'
|
||||
declare -gir ERR_ARG_MSMTCH=213 # Wrong Number of optional Arguments provided
|
||||
declare -gir ERR_SECRETSSYM=251 # VAR_TMP_SECRET is a symlink.
|
||||
declare -gir ERR_NOTABSPATH=252 # Not an absolute path
|
||||
declare -gir ERR_INVLD_CHAR=253 # Invalid Character
|
||||
declare -gir ERR_UNBOUNDVAR=254 # Unbound Variable
|
||||
|
||||
Reference in New Issue
Block a user