Permalink
Browse files

add extension to temporary files too so the matching applications can…

… recognized more straightforwardly
  • Loading branch information...
1 parent 34cfea5 commit 6d6f4e5a431f609c630bf0638762e7ec697661aa Andras Horvath committed Feb 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 open_gpg.rb
View
@@ -118,9 +118,9 @@ def fwrite(file, text)
# temp file to store unencrypted file temporarily
-f = Tempfile.new("open_gpg"); temp = f.path; f.close
+f = Tempfile.new("open_gpg"); temp = f.path + "." + ext; f.close
# temp file to store the stderr output of gpg
-f = Tempfile.new("open_gpg"); outp = f.path; f.close
+f = Tempfile.new("open_gpg"); outp = f.path + "." + ext; f.close
# --- trap code to delete unencrypted files on exit ---

0 comments on commit 6d6f4e5

Please sign in to comment.