···186186 cd "$PA_DIR" ||
187187 die "Can't access password directory"
188188189189- [ -f ~/.age/key.txt ] || pw_gen
190190- pubkey=$(sed -n 's/.*\(age\)/\1/p' ~/.age/key.txt)
191191-192189 glob "$1" '[acdes]*' && [ -z "$2" ] &&
193190 die "Missing [name] argument"
194191···210207 # Restrict permissions of any new files to
211208 # only the current user.
212209 umask 077
210210+211211+ [ -f ~/.age/key.txt ] || pw_gen
212212+ pubkey=$(sed -n 's/.*\(age\)/\1/p' ~/.age/key.txt)
213213214214 # Ensure that we leave the terminal in a usable
215215 # state on exit or Ctrl+C.