diff options
Diffstat (limited to '')
-rw-r--r-- | redhat/frr.spec.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index be3b83bf8..670bc6f4c 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -444,7 +444,7 @@ zebra_spec_add_service () { # Add port /etc/services entry if it isn't already there if [ -f %{_sysconfdir}/services ] && \ - ! %__sed -e 's/#.*$//' %{_sysconfdir}/services | %__grep -wq $1 ; then + ! %__sed -e 's/#.*$//' %{_sysconfdir}/services 2>/dev/null | %__grep -wq $1 ; then echo "$1 $2 # $3" >> %{_sysconfdir}/services fi } |