diff options
-rw-r--r-- | sh/shrc.d/pwgen.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sh/shrc.d/pwgen.sh b/sh/shrc.d/pwgen.sh index 7ba056e5..510349eb 100644 --- a/sh/shrc.d/pwgen.sh +++ b/sh/shrc.d/pwgen.sh @@ -1,8 +1,7 @@ # Set some defaults for pwgen(1), because its defaults are to give me a long # list of relatively short passwords, when I generally want only one good one pwgen() { - if ! (($#)) ; then + [ "$#" -eq 0 ] && set -- --secure -- "${PWGEN_LENGTH:-15}" "${PWGEN_COUNT:-1}" - fi command pwgen "$@" } |