summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrealtime-neil <neil@rtr.ai>2022-10-26 21:45:02 +0000
committerGitHub <noreply@github.com>2022-10-26 14:45:02 -0700
commitbe0a5d34950ffc7dd12a84c2e22c1d907de3ab74 (patch)
tree476bfc13096ce8be6bee18d69c600cad9f5cc473
parent925ba15fe3624a2ba5a0678b4b76bfdbd52bf883 (diff)
downloadmakeself-be0a5d34950ffc7dd12a84c2e22c1d907de3ab74.tar.gz
fix 282: 'df -kP' -> 'df -k' (#283)
Because VMware ESXi version 6.5 ships 'df' as a (very) non-compliant python script that (surprise) doesn't support your fancy POSIX output format. Further reading: * https://git.busybox.net/busybox/tree/coreutils/df.c * https://github.com/landley/toybox/blob/master/toys/posix/df.c * https://pubs.opengroup.org/onlinepubs/9699919799/utilities/df.html
-rwxr-xr-xmakeself-header.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makeself-header.sh b/makeself-header.sh
index 64e9ccc..8ba4389 100755
--- a/makeself-header.sh
+++ b/makeself-header.sh
@@ -92,7 +92,7 @@ MS_PrintLicense()
MS_diskspace()
{
(
- df -kP "\$1" | tail -1 | awk '{ if (\$4 ~ /%/) {print \$3} else {print \$4} }'
+ df -k "\$1" | tail -1 | awk '{ if (\$4 ~ /%/) {print \$3} else {print \$4} }'
)
}