summaryrefslogtreecommitdiff
path: root/makeself-header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makeself-header.sh')
-rwxr-xr-xmakeself-header.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index fc52020..563bd39 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -61,7 +61,10 @@ MS_dd_Progress()
i=0
pos=0
index=0
- bsize=`expr 2048 '*' 1024`
+ bsize=4194304
+ while test \$bsize -gt \$length; do
+ bsize=\`expr \$bsize / 4\`
+ done
blocks=\`expr \$length / \$bsize\`
bytes=\`expr \$length % \$bsize\`
dd if="\$file" ibs=\$offset obs=\$bsize skip=1 conv=sync 2> /dev/null | \\