diff options
author | Jameson Rollins <jrollins@finestructure.net> | 2010-10-18 18:12:45 -0400 |
---|---|---|
committer | Jameson Rollins <jrollins@finestructure.net> | 2010-10-18 18:12:45 -0400 |
commit | b151467d9947c474f96269c33b940cf887d4a340 (patch) | |
tree | 2a48c64a904cd7ebeaa2501a3028c39051cd6dee /src/share/m | |
parent | 7794ed5e76b6aa9833c1d4de9bf8f54afdf75bde (diff) |
fix process_keys_for_file so that it can accept '-' as a file, and send output to stdout.
Diffstat (limited to 'src/share/m')
-rw-r--r-- | src/share/m/keys_for_userid | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/share/m/keys_for_userid b/src/share/m/keys_for_userid index a65356b..16f6f8b 100644 --- a/src/share/m/keys_for_userid +++ b/src/share/m/keys_for_userid @@ -12,15 +12,5 @@ # 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 + FILE_TYPE='raw' process_keys_for_file - "$@" } |