Change default genpasswd length to 32

This commit is contained in:
Cyryl Płotnicki 2016-09-18 14:58:16 +02:00
parent 2e905d88a6
commit afa7f3d4f3

View file

@ -1,4 +1,4 @@
#!/bin/bash
l=$1
[ "$l" == "" ] && l=16
[ "$l" == "" ] && l=32
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs