zshrc: fix makepass length bug

This commit is contained in:
2018-10-16 16:55:12 +02:00
parent 1c389e4181
commit 7bf2883a26

2
zshrc
View File

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