diff options
| author | Adam Vandenberg | 2013-06-12 17:03:26 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-12 17:03:26 -0700 |
| commit | 81f9664508bd290cf73d3b46c2eee647a70b66dd (patch) | |
| tree | 9c75a6087df28a0b8cb0a06b7270c86ef634bcad | |
| parent | 58a1aa75d6d54d634dcb748cf2bd2367f2a1dd08 (diff) | |
| download | homebrew-81f9664508bd290cf73d3b46c2eee647a70b66dd.tar.bz2 | |
nss: use testpath
| -rw-r--r-- | Library/Formula/nss.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/nss.rb b/Library/Formula/nss.rb index 52dbaa97d..73c6bf18e 100644 --- a/Library/Formula/nss.rb +++ b/Library/Formula/nss.rb @@ -57,7 +57,7 @@ class Nss < Formula test do # See: http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html - File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") } + (testpath/'passwd').write("It's a secret to everyone.") system "#{bin}/certutil", "-N", "-d", pwd, "-f", "passwd" system "#{bin}/certutil", "-L", "-d", pwd end |
