aboutsummaryrefslogblamecommitdiff
path: root/bin/pwg.sh
blob: e73ae97a3e83d8474cf4b1b690441e7d7dfcd295 (plain) (tree)
1
2
3
4
5
6


                                                             
                                                                

          
# 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 "$@"