fix(installer): SIGPIPE crash in generate_password with pipefail
All checks were successful
CI / build (push) Successful in 1m15s
CI / docker (push) Successful in 18s

`tr | head -c 32` causes tr to receive SIGPIPE when head exits early.
With `set -eo pipefail`, exit code 141 kills the script right after
"Configuration validated" before any passwords are generated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-25 01:41:47 +02:00
parent 62b74d2d06
commit 180644f0df

View File

@@ -147,7 +147,7 @@ prompt_yesno() {
}
generate_password() {
tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 32
tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 32 || :
}
# --- Argument parsing ---