]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: fix configure command line in Homebrew
authorVincent Bernat <vincent@bernat.im>
Sat, 8 Aug 2015 19:16:52 +0000 (21:16 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 8 Aug 2015 19:23:29 +0000 (21:23 +0200)
The array concat operator has an higher precedence than the ternary
operator in Ruby.

osx/lldpd.rb

index 6e166cc8df9f8791ca9787ad15836c735f7133a5..855450034a96467a4d2cfdae6f08efbe55c4dc60 100644 (file)
@@ -24,8 +24,8 @@ class Lldpd < Formula
             "--with-launchddaemonsdir=no",
             "CPPFLAGS=-I#{readline.include} -DRONLY=1",
             "LDFLAGS=-L#{readline.lib}"]
-    args << build.with?("snmp") ? "--with-snmp" : "--without-snmp"
-    args << build.with?("json") ? "--with-json" : "--without-json"
+    args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp")
+    args << (build.with?("json") ? "--with-json" : "--without-json")
 
     system "./configure", *args
     system "make"