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