blob: a65356bc2674497b68bf8a76b4230a18e6dfebe1 (
plain)
- # -*-shell-script-*-
- # This should be sourced by bash (though we welcome changes to make it POSIX sh compliant)
- # Monkeysphere keys-for-userid subcommand
- #
- # The monkeysphere scripts are written by:
- # Jameson Rollins <jrollins@finestructure.net>
- # Jamie McClelland <jm@mayfirst.org>
- # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
- #
- # They are Copyright 2010, and are all released under the GPL, version
- # 3 or later.
- keys_for_userid() {
- local tmpFile=$(msmktempfile)
- trap "rm -f $tmpFile" EXIT
- FILE_TYPE='raw' process_keys_for_file "$tmpFile" "$@"
- cat "$tmpFile"
- rm -f "$tmpFile"
- trap - EXIT
- }
|