usergen: Fix password generation

For longer passwords, od(1) might introduce a newline character, causing
printf(1) to interpret its input string incorrectly.
This commit is contained in:
Xavier Del Campo Romero 2024-01-26 20:32:28 +01:00
parent 8ebefdb9ab
commit 6d6c350479
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ usage()
to_hex()
{
od -An -t x1 | tr -d ' '
od -An -t x1 | tr -d ' ' | tr -d '\n'
}
to_bin()