aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:17:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:21:30 +1200
commit5d3af95333f71c98166348314c2e2bbd9c756e0b (patch)
treedc3d71a8fe0f01281b2aa7362e9c520577115ae8 /sh/shrc.d
parentSpecify shell dialect for bash/sh linting (diff)
downloaddotfiles-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.sh3
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 "$@"
}