]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #5632 from ton31337/fix/dont_use_pipes
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>
Mon, 6 Jan 2020 17:19:42 +0000 (11:19 -0600)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2020 17:19:42 +0000 (11:19 -0600)
packaging: Redirect stderr to /dev/null in %post action (frr.spec.in)

redhat/frr.spec.in

index be3b83bf80b74d5f306a39b2166cf82bcc37dc80..670bc6f4c91060b7c6f1bb4dd8d721866be7149d 100644 (file)
@@ -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
 }