Browse Source

Don't include training carriage return on passwords

Bob Mottram 7 years ago
parent
commit
e6d1ec9a9a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-utils-passwords

+ 1
- 1
src/freedombone-utils-passwords View File

@@ -51,7 +51,7 @@ function enforce_good_passwords {
51 51
 }
52 52
 
53 53
 function create_password {
54
-    openssl rand -base64 32 | tr -dc A-Za-z0-9 | head -c ${1} ; echo ''
54
+    openssl rand -base64 32 | tr -dc A-Za-z0-9 | head -c ${1} ; echo -n ''
55 55
 }
56 56
 
57 57
 # NOTE: deliberately no exit 0