diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/node.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/texmacs.rb | 3 | ||||
| -rw-r--r-- | Library/Formula/tuntap.rb | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index ca39f8013..515d0566a 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -34,7 +34,7 @@ class NpmNotInstalled < Requirement begin path = Pathname.new("#{modules_folder}/npm") path.realpath.to_s.include?(HOMEBREW_CELLAR) - rescue Exception => e + rescue Errno::ENOENT true end end diff --git a/Library/Formula/texmacs.rb b/Library/Formula/texmacs.rb index 4d515f8a1..eaeedadba 100644 --- a/Library/Formula/texmacs.rb +++ b/Library/Formula/texmacs.rb @@ -18,8 +18,7 @@ class Texmacs < Formula system "make install" end - def caveats - general_caveats = <<-EOS.undent + def caveats; <<-EOS.undent TeXmacs has been installed! You can also check some dependencies : * Aspell for spell checking * Gnuplot for inline plotting diff --git a/Library/Formula/tuntap.rb b/Library/Formula/tuntap.rb index 450a35fa9..930d015f8 100644 --- a/Library/Formula/tuntap.rb +++ b/Library/Formula/tuntap.rb @@ -18,8 +18,7 @@ class Tuntap < Formula end end - def caveats - message = <<-EOS.undent + def caveats; <<-EOS.undent In order for TUN/TAP network devices to work, the tun/tap kernel extensions must be installed by the root user: |
