V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m57s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m57s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -10,14 +10,19 @@
|
||||
# SPDX-PackageName: CISS.debian.installer
|
||||
# SPDX-Security-Contact: security@coresecret.eu
|
||||
|
||||
guard_sourcing
|
||||
|
||||
#######################################
|
||||
# Wrapper for mismatched Arguments.
|
||||
# Globals:
|
||||
# C_RED
|
||||
# C_RES
|
||||
# ERR_ARG_MISMATCH
|
||||
# NL
|
||||
# VAR_AUTO_INSTALL
|
||||
# VAR_IN_DIALOG_WR
|
||||
# Arguments:
|
||||
# $1: Error message to be printed.
|
||||
# 1: Message to be printed.
|
||||
#######################################
|
||||
arg_mismatch() {
|
||||
### Call cleaner if and only if not in auto-install mode.
|
||||
@@ -29,7 +34,7 @@ arg_mismatch() {
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
printf "\e[91m❌ Error: %s\e[0m\n" "${1}" >&2
|
||||
printf "%s❌ Error: '%s'. %s%s" "${C_RED}" "${1}" "${C_RES}" "${NL}" >&2
|
||||
read -pr $'\e[92m✅ Press \'ENTER\' to exit the script ... \e[0m'
|
||||
exit "${ERR_ARG_MISMATCH}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user