From 5d3af95333f71c98166348314c2e2bbd9c756e0b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Aug 2016 20:17:52 +1200 Subject: Remove stray Bashism from pwgen() wrapper --- sh/shrc.d/pwgen.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sh/shrc.d') 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 "$@" } -- cgit v1.2.3