summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author David Somero <xgizzmo@slackbuilds.org>2010-05-19 02:50:28 -0400
committer David Somero <xgizzmo@slackbuilds.org>2010-05-19 02:50:28 -0400
commitceb56fcda7ed85495720be5c35467a56fa0b849c (patch)
tree8ecb5690c7cf108bf0b85bf469fececb74844c32
parentd10f5b3ed8209f99de83d6fc37edde527181417d (diff)
downloadslackbuilds-ceb56fcda7ed85495720be5c35467a56fa0b849c.tar.gz
slackbuilds-ceb56fcda7ed85495720be5c35467a56fa0b849c.tar.xz
system/set_rlimits: Fixed for bash4.
-rw-r--r--system/set_rlimits/set_rlimits.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/system/set_rlimits/set_rlimits.SlackBuild b/system/set_rlimits/set_rlimits.SlackBuild
index 673bed551d..92520556f6 100644
--- a/system/set_rlimits/set_rlimits.SlackBuild
+++ b/system/set_rlimits/set_rlimits.SlackBuild
@@ -47,12 +47,8 @@ make install PREFIX=/usr DESTDIR=$PKG
mv $PKG/etc/set_rlimits.conf $PKG/etc/set_rlimits.conf.new
-( 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 {} \;