]> git.puffer.fish Git - matthieu/frr.git/commitdiff
redhat: Fix previously added centos6/redhat6 check
authorMartin Winter <mwinter@opensourcerouting.org>
Fri, 14 Apr 2017 09:20:31 +0000 (02:20 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 6 Jun 2017 18:34:49 +0000 (14:34 -0400)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/frr.spec.in

index 8ecb63ec94b118300959295379ad31267600d0ee..1ebb7c16ca5fae9d2b688a7c8536dfb1dd33aa7e 100644 (file)
@@ -65,7 +65,7 @@
 
 #### Check for RedHat 6.x or CentOS 6.x - they are too old to support PIM. 
 ####   Always disable it on these old systems unconditionally
-%{expand: %%global redhat6 %(if [[ `cat /etc/redhat-release 2> /dev/null` =~ release\ 6\. ]]; then echo 6; fi)}
+%{expand: %%global redhat6 %(if [[ `cat /etc/redhat-release 2> /dev/null` =~ release\ 6\. ]]; then echo 6; else echo 0; fi)}
 #
 # if CentOS 6 / RedHat 6, then disable PIMd
 %if "%{redhat6}" == "6"