aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/chkrootkit/chkrootkit.SlackBuild4
1 files changed, 1 insertions, 3 deletions
diff --git a/system/chkrootkit/chkrootkit.SlackBuild b/system/chkrootkit/chkrootkit.SlackBuild
index 36f1447f62..b9d0ce1328 100644
--- a/system/chkrootkit/chkrootkit.SlackBuild
+++ b/system/chkrootkit/chkrootkit.SlackBuild
@@ -85,9 +85,7 @@ SCFLAGS="$SLKCFLAGS" make
# Lets make our own fancy make install
DESTDIR=$PKG/usr/lib${LIBDIRSUFFIX}/chkrootkit/bin
mkdir -p $DESTDIR
-for BINPRG in $(ls -l | grep "rwx\|\-x" | grep -v "\." | awk '{ print $9 }'); do
- install -m 0755 $BINPRG $DESTDIR
-done
+find . -type f -executable -exec install -m 0755 '{}' $DESTDIR \;
# Thanks to Erik Jan Tromp (alphageek) for the suggestion on this
# Install a wrapper script