From e6d1ec9a9ac8d911dccf6b46140f1e84860c1b80 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 20 Sep 2017 15:23:58 +0100 Subject: [PATCH] Don't include training carriage return on passwords --- src/freedombone-utils-passwords | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-passwords b/src/freedombone-utils-passwords index a2980691..7e63b9e0 100755 --- a/src/freedombone-utils-passwords +++ b/src/freedombone-utils-passwords @@ -51,7 +51,7 @@ function enforce_good_passwords { } function create_password { - openssl rand -base64 32 | tr -dc A-Za-z0-9 | head -c ${1} ; echo '' + openssl rand -base64 32 | tr -dc A-Za-z0-9 | head -c ${1} ; echo -n '' } # NOTE: deliberately no exit 0