From 965c936109d8c01776c583c00dd00ad8d1ff5c26 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sat, 11 Feb 2023 14:46:56 +0100 Subject: [PATCH] functions: ignore stderr when generating password --- src/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.sh b/src/functions.sh index 0a89013..5798afd 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -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} } \ No newline at end of file