diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-11-26 19:53:08 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-29 11:56:42 +0100 |
commit | b59b5d7540084bd4759e45e0e2765c04e0448656 (patch) | |
tree | 0ccf71bf211299959fa4d0cfe87198b786c46b82 | |
parent | 19e7923b82fc34ba7086a93da55add84e8a08b67 (diff) | |
download | mkinitcpio-b59b5d7540084bd4759e45e0e2765c04e0448656.tar.gz mkinitcpio-b59b5d7540084bd4759e45e0e2765c04e0448656.tar.xz |
lsinitcpio: columnize binaries output
Now that we're including symlinks to busybox on the prebuilt image, this
display needs a bit of tidying up.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | lsinitcpio | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -96,7 +96,7 @@ esac if (( analyze )); then declare -a binaries explicitmod modules foundhooks hooks - declare kernver ratio + declare kernver ratio columns=$(tput cols) # calculate compression ratio if [[ $compress ]]; then @@ -147,12 +147,12 @@ if (( analyze )); then printf ' %s' "$mod" in_array "${mod//_/-}" "${explicitmod[@]//_/-}" && printf ' [explicit]' printf '\n' - done | sort | column -c$(tput cols) + done | sort | column -c$columns printf '\n' fi msg 'Included binaries:' - printf ' %s\n' "${binaries[@]}" + printf '%s\n' "${binaries[@]}" | column -c$columns printf '\n' if (( ${#hooks[*]} )); then |