瀏覽代碼

Don't include training carriage return on passwords

Bob Mottram 7 年之前
父節點
當前提交
e6d1ec9a9a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-utils-passwords

+ 1
- 1
src/freedombone-utils-passwords 查看文件

@@ -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