diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-02-20 03:32:41 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-02-20 03:32:52 +0100 |
commit | a8beffd774be11956041997224878202d1aa970f (patch) | |
tree | 5646b83f946665c77f9cdf863adef6abb4ebcef1 /lsinitcpio | |
parent | 838ffa831dca80e5578df0de9d6ac67d903c58c7 (diff) | |
download | mkinitcpio-a8beffd774be11956041997224878202d1aa970f.tar.gz mkinitcpio-a8beffd774be11956041997224878202d1aa970f.tar.xz |
lsinitcpio: trim binaries during discovery
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-x | lsinitcpio | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -105,8 +105,8 @@ if (( analyze )); then kernver=${BASH_REMATCH[1]} elif [[ $line = ./hooks/* ]]; then foundhooks+=("${line##*/}") - elif [[ $line = *@(/bin/|/sbin/)* ]]; then - binaries+=("${line#.}") + elif [[ $line = *@(/?(s)bin/)* ]]; then + binaries+=("${line##*/}") fi done < <(decomp "$image" | bsdtar tf -) @@ -144,7 +144,7 @@ if (( analyze )); then fi msg 'Included binaries:' - printf ' %s\n' "${binaries[@]##*/}" | sort | column -c$columns + printf ' %s\n' "${binaries[@]}" | sort | column -c$columns printf '\n' if (( ${#hooks[*]} )); then |