summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio3
1 files changed, 3 insertions, 0 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 54ff534..5abe37f 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -127,6 +127,9 @@ if (( analyze )); then
declare -a binaries explicitmod modules foundhooks hooks
declare kernver ratio columns=$(tput cols)
+ # fallback in case tput failed us
+ columns=${columns:-80}
+
zsize=$(stat -c %s "$image")
# calculate compression ratio