From 5d1f8aa4e5e1726260316adc73963885e07c8d09 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 4 Jun 2012 09:02:17 -0400 Subject: lsinitcpio: show only regular files as binaries Show only regular files in /usr/bin instead of everything (including the mess of symlinks to busybox and kmod). It's also a nice to have since we're showing more about the multiple hook points now. This mostly restores the behavior prior to f7b8a6f0fd. Signed-off-by: Dave Reisner --- lsinitcpio | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lsinitcpio b/lsinitcpio index 9cb5209..4b9f77b 100755 --- a/lsinitcpio +++ b/lsinitcpio @@ -160,8 +160,7 @@ if (( analyze )); then foundhooks=("$workdir"/hooks/*) [[ -f ${foundhooks[0]} ]] && foundhooks=("${foundhooks[@]##*/}") || unset foundhooks - binaries=("$workdir"/usr/bin/*) - binaries=("${binaries[@]##*/}") + mapfile -t binaries < <(find "$workdir/usr/bin" -type f -printf %f\\n) read -r version < "$workdir/VERSION" -- cgit v1.2.3-24-g4f1b