V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 40s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 40s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -30,7 +30,7 @@ declare -grx VAR_SETUP_PATH="$(cd "$(dirname "${0}")" && pwd)" # '/opt/
|
||||
declare -grx VAR_SETUP_FULL="$(cd "$(dirname "${0}")" && pwd)/${0##*/}" # '/opt/git/CISS.debian.installer/setup.sh'
|
||||
|
||||
### PRELIMINARY CHECKS.
|
||||
### No ash, dash, ksh, sh, zsh.
|
||||
### No ash, dash, ksh, sh.
|
||||
# shellcheck disable=2292
|
||||
[ -z "${BASH_VERSINFO[0]}" ] && {
|
||||
. ./meta_loader_early.sh
|
||||
@@ -38,6 +38,13 @@ declare -grx VAR_SETUP_FULL="$(cd "$(dirname "${0}")" && pwd)/${0##*/}" # '/opt/
|
||||
exit "${ERR_UNSUPPORTED_BASH}"
|
||||
}
|
||||
|
||||
### No zsh.
|
||||
[[ -n "${ZSH_VERSION:-}" ]] && {
|
||||
. ./meta_loader_early.sh
|
||||
printf "%b❌ Please make sure you are using 'bash'! Bye... %b%b" "${RED}" "${RES}" "${NL}" >&2
|
||||
exit "${ERR_UNSUPPORTED_BASH}"
|
||||
}
|
||||
|
||||
### Not root.
|
||||
[[ ${EUID} -ne 0 ]] && {
|
||||
. ./meta_loader_early.sh
|
||||
@@ -87,8 +94,8 @@ for arg in "$@"; do case "${arg,,}" in -h|--help) . ./meta_loader_cuv.sh; usa
|
||||
for arg in "$@"; do case "${arg,,}" in -v|--version) . ./meta_loader_cuv.sh; version; exit 0;; esac; done
|
||||
|
||||
### SOURCING MUST SET EARLY VARIABLES. SOURCING COLOR_ECHO() AND GUARD_SOURCING().
|
||||
. ./lib/0010_guard_sourcing.sh
|
||||
. ./lib/0010_source_guard.sh
|
||||
. ./lib/0010_guard_sourcing.sh # The function guard_sourcing MUST be present in each file to source.
|
||||
. ./lib/0010_source_guard.sh # Wrapper for sourcing modules, libraries, variables.
|
||||
source_guard "./var/color.var.sh"
|
||||
source_guard "./var/early.var.sh"
|
||||
source_guard "./lib/0004_color_echo.sh"
|
||||
|
||||
Reference in New Issue
Block a user