summaryrefslogtreecommitdiff
path: root/src/share/m/keys_for_userid
blob: a65356bc2674497b68bf8a76b4230a18e6dfebe1 (plain)
  1. # -*-shell-script-*-
  2. # This should be sourced by bash (though we welcome changes to make it POSIX sh compliant)
  3. # Monkeysphere keys-for-userid subcommand
  4. #
  5. # The monkeysphere scripts are written by:
  6. # Jameson Rollins <jrollins@finestructure.net>
  7. # Jamie McClelland <jm@mayfirst.org>
  8. # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  9. #
  10. # They are Copyright 2010, and are all released under the GPL, version
  11. # 3 or later.
  12. keys_for_userid() {
  13. local tmpFile=$(msmktempfile)
  14. trap "rm -f $tmpFile" EXIT
  15. FILE_TYPE='raw' process_keys_for_file "$tmpFile" "$@"
  16. cat "$tmpFile"
  17. rm -f "$tmpFile"
  18. trap - EXIT
  19. }