Files: 99632759931138b75a0c377236b80bbe2042a18d / geninvitecodepaths.sh
371 bytesRaw
1 | |
2 | count=${1?count} |
3 | size=${2:-6} |
4 | name=$3 |
5 | case "$size" in |
6 | 6) pwgen -sAB 6 "$count" | sed "s/\(.\)\(.....\)/\1\/\2\.html/" ;; |
7 | 10) pwgen -sAB 10 "$count" | sed "s/\(.\)\(.........\)/\1\/\2\.html/" ;; |
8 | *) echo 'invalid length' >&2; exit 1;; |
9 | esac | while read -r path |
10 | do |
11 | invite="$(./geninvitecode.sh)" || exit 1 |
12 | printf "%s\t%s\t%s\n" "$path" "$invite" "$name" |
13 | done |
14 |
Built with git-ssb-web