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