summaryrefslogtreecommitdiffstats
path: root/lsinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'lsinitcpio')
-rwxr-xr-xlsinitcpio4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 7bbcb52..1a5585c 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -72,7 +72,7 @@ analyze_image() {
local -a binaries explicitmod modules foundhooks hooks
local kernver ratio columns=$(tput cols) image=$1
- workdir=$(mktemp -d --tmpdir="$TMPDIR" lsinitcpio.XXXXXX)
+ workdir=$(mktemp -d --tmpdir lsinitcpio.XXXXXX)
trap 'rm -rf "$workdir"' EXIT
# fallback in case tput failed us
@@ -83,7 +83,7 @@ analyze_image() {
# calculate compression ratio
TIMEFORMAT=%R decomptime=$({ time decomp "$_image" >/dev/null; } 2>&1)
if [[ $_compress ]]; then
- fullsize=$(decomp "$_image" | bsdtar xOf - | wc -c)
+ fullsize=$(decomp "$_image" | wc -c)
ratio=.$(( zsize * 1000 / fullsize % 1000 ))
fi