From ee50512d40c3b7d0a0801ce639b36bf1a7384354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 17 Oct 2017 15:44:57 +0100 Subject: [PATCH] Fix the number of characters being put out from genpasswd (#143) --- tools/genpasswd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genpasswd b/tools/genpasswd index 4b2c34d0..e4762edb 100755 --- a/tools/genpasswd +++ b/tools/genpasswd @@ -1,4 +1,4 @@ #!/bin/bash l=$1 [ "$l" == "" ] && l=32 -openssl rand -base64 $l +openssl rand -base64 $l | cut -c-$l