summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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