From f3febaf778538e5af9e44793877b346df13b681c Mon Sep 17 00:00:00 2001 From: David Somero Date: Wed, 19 May 2010 02:44:32 -0400 Subject: [PATCH] network/nagios: Fixed for bash4. --- network/nagios/nagios.SlackBuild | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/network/nagios/nagios.SlackBuild b/network/nagios/nagios.SlackBuild index ebc74a69f1..f8e55326be 100644 --- a/network/nagios/nagios.SlackBuild +++ b/network/nagios/nagios.SlackBuild @@ -82,12 +82,8 @@ make install-config mkdir -p $PKG/etc/httpd/extra make install-webconf -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Change configuration files to .new find $PKG/etc/$PRGNAM/ -name *.cfg | while read cfg ; do mv $cfg $cfg.new ; done