summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-04 15:02:17 +0200
committerDave Reisner <dreisner@archlinux.org>2012-06-08 23:38:57 +0200
commit5d1f8aa4e5e1726260316adc73963885e07c8d09 (patch)
tree262046a833c44096d2d4af56fd356953c39018c1
parent5994f4c9d6d2b2093ffc3f0b672ea18ff794b7bd (diff)
downloadmkinitcpio-0.9.2.tar.gz
mkinitcpio-0.9.2.tar.xz
lsinitcpio: show only regular files as binaries0.9.2
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 <dreisner@archlinux.org>
-rwxr-xr-xlsinitcpio3
1 files changed, 1 insertions, 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"