diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-06-04 15:02:17 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-06-08 23:38:57 +0200 |
commit | 5d1f8aa4e5e1726260316adc73963885e07c8d09 (patch) | |
tree | 262046a833c44096d2d4af56fd356953c39018c1 | |
parent | 5994f4c9d6d2b2093ffc3f0b672ea18ff794b7bd (diff) | |
download | mkinitcpio-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-x | lsinitcpio | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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" |