aboutsummaryrefslogtreecommitdiff
path: root/bin/pwg
blob: 97af3df45e1fe0b8cc1a72af219534edd7607c99 (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:-16}" "${PWGEN_COUNT:-1}"
fi
pwgen "$@"