aboutsummaryrefslogtreecommitdiff
path: root/bin/pwg
blob: 219de0035da4216cd5256feea042e2165880d267 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
# Shortcut to generate just one strong password with pwgen(1)
# If any arguments are provided, those are used instead
if [ "$#" -eq 0 ] ; then
    set -- --secure -- "${PWGEN_LENGTH:-15}" "${PWGEN_COUNT:-1}"
fi
pwgen "$@"