functions: ignore stderr when generating password

This commit is contained in:
thorstenspille 2023-02-11 14:46:56 +01:00
parent 140f80afb1
commit 965c936109

View File

@ -5,5 +5,5 @@ LXC_RANDOMPWD=32
random_password() {
set +o pipefail
C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c${LXC_RANDOMPWD}
C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom 2>/dev/null | head -c${LXC_RANDOMPWD}
}