mirror of
https://github.com/megastep/makeself.git
synced 2025-09-26 19:41:12 +08:00
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
This commit is contained in:
@@ -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} }'
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user