diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:17:52 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:21:30 +1200 |
commit | 5d3af95333f71c98166348314c2e2bbd9c756e0b (patch) | |
tree | dc3d71a8fe0f01281b2aa7362e9c520577115ae8 /sh/shrc.d | |
parent | Specify shell dialect for bash/sh linting (diff) | |
download | dotfiles-5d3af95333f71c98166348314c2e2bbd9c756e0b.tar.gz dotfiles-5d3af95333f71c98166348314c2e2bbd9c756e0b.zip |
Remove stray Bashism from pwgen() wrapper
Diffstat (limited to 'sh/shrc.d')
-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 "$@" } |