Don't print grep results

This commit is contained in:
Kevin Cotugno 2017-12-27 15:40:08 -08:00
parent 209e9b302a
commit 7aa16a13ef

View File

@ -31,7 +31,7 @@ function passgen () {
local len="$1" local len="$1"
local lower="$2" local lower="$2"
echo "$len" | grep -E '^[0-9]+$' echo "$len" | grep -qE '^[0-9]+$'
if (( $? )); then if (( $? )); then
len=32 len=32
fi fi