summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:50:08 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:50:08 -0400
commita936b17cb4fcef90e43e898d0971d3840da3ff94 (patch)
treec40b970647f3ba83d94cd47b311ca9b2a6adeb94
parent812b08456dc532f60d7fa4d60e5a2571884761e7 (diff)
downloadslackbuilds-a936b17cb4fcef90e43e898d0971d3840da3ff94.tar.gz
system/pcp: Fixed for bash4.
-rw-r--r--system/pcp/pcp.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/system/pcp/pcp.SlackBuild b/system/pcp/pcp.SlackBuild
index 941f80a9d7..168c138832 100644
--- a/system/pcp/pcp.SlackBuild
+++ b/system/pcp/pcp.SlackBuild
@@ -74,12 +74,8 @@ mv $PKG/etc/rc.d/pmproxy $PKG/etc/rc.d/pmproxy.new
# Install the init scripts non-executable by default
chmod 0644 $PKG/etc/rc.d/*
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;