From 7aa16a13ef7a557f9516f0aa616db0703242ae4e Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Wed, 27 Dec 2017 15:40:08 -0800 Subject: [PATCH] Don't print grep results --- profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile b/profile index 7ada457..6cf5327 100644 --- a/profile +++ b/profile @@ -31,7 +31,7 @@ function passgen () { local len="$1" local lower="$2" - echo "$len" | grep -E '^[0-9]+$' + echo "$len" | grep -qE '^[0-9]+$' if (( $? )); then len=32 fi