Don’t call non-existent functions; Fixes Homebrew/homebrew#19133

I did test this, but then I broke it and didn't test it again.

Also corrects the plist binary location. Since I changed that from sbin to bin.
master
Max Howell 2013-04-12 17:08:26 -04:00
parent fa5735952d
commit 4f985bb4e6
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ class Nginx < Formula
prefix.cd do
dst = HOMEBREW_PREFIX/"var/www"
if not dst.exist?
dst.dirname.mkpath
mv "html", dst
dst.dirname.mkdir_p
else
rm_rf "html"
dst.mkpath
@ -111,7 +111,7 @@ class Nginx < Formula
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/sbin/nginx</string>
<string>#{opt_prefix}/bin/nginx</string>
<string>-g</string>
<string>daemon off;</string>
</array>