From 7bf2883a2652f74e0daacff9ac5ca05e6231f561 Mon Sep 17 00:00:00 2001 From: hellerve Date: Tue, 16 Oct 2018 16:55:12 +0200 Subject: [PATCH] zshrc: fix makepass length bug --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index be18569..c19239c 100644 --- a/zshrc +++ b/zshrc @@ -172,7 +172,7 @@ save_dotfiles(){ makepass(){ LEN=20 - if [ $# -gt 1 ] ; then + if [ $# -gt 0 ] ; then LEN=$1 fi cat /dev/urandom | base64 | head -c $LEN