summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-11-26 19:53:08 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-29 11:56:42 +0100
commitb59b5d7540084bd4759e45e0e2765c04e0448656 (patch)
tree0ccf71bf211299959fa4d0cfe87198b786c46b82
parent19e7923b82fc34ba7086a93da55add84e8a08b67 (diff)
downloadmkinitcpio-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-xlsinitcpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 4cf4889..940e733 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -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