V8.02.768.2025.06.01
Some checks failed
Generating a private Live ISO. / Generating a private Live ISO. (push) Failing after 11s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-06-01 10:01:13 +02:00
parent 0ee9157152
commit 41768c3c36
5 changed files with 13 additions and 9 deletions

View File

@@ -173,13 +173,12 @@ arg_parser() {
;;
--control)
#if [[ -n "${2}" && "${2}" =~ ^-?[0-9]+$ && "${2}" -ge 1 && "${2}" -le 65536 ]]; then
if [[ -n "${2}" ]]; then
declare -g VAR_HANDLER_ISO_COUNTER="${2}"
shift 2
else
if ! $VAR_HANDLER_AUTOBUILD; then boot_screen_cleaner; fi
printf "\e[91m❌ Error: --control MUST be an integer between '1' and '65535'.\e[0m\n" >&2
printf "\e[91m❌ Error: --control MUST be provided with a Parameter.\e[0m\n" >&2
# shellcheck disable=SC2162
read -p $'\e[92m✅ Press \'ENTER\' to exit the script ... \e[0m'
exit "${ERR_CONTROL_CT}"