summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Peter <megastep@megastep.org>2023-03-12 18:46:31 -0700
committerStephane Peter <megastep@megastep.org>2023-03-12 18:46:31 -0700
commit3ca04a80e489eff57997688533224017ccfc2501 (patch)
tree27b421832f84f65a8309de9f2998f2c7836604b3
parent159120e689bae176570d1497c1347c43e507facc (diff)
downloadmakeself-3ca04a80e489eff57997688533224017ccfc2501.tar.gz
Cannot use count=0 argument to dd as it breaks NetBSD compatibility.
-rwxr-xr-xmakeself-header.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index 879f37e..5bc982e 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -127,7 +127,7 @@ MS_dd_Progress()
blocks=\`expr \$length / \$bsize\`
bytes=\`expr \$length % \$bsize\`
(
- dd ibs=\$offset skip=1 count=0 2>/dev/null
+ dd ibs=\$offset skip=1 count=1 2>/dev/null
pos=\`expr \$pos \+ \$bsize\`
MS_Printf " 0%% " 1>&2
if test \$blocks -gt 0; then