diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-03 14:36:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 14:36:26 +0300 |
commit | 15551d9b1448d3dbaf1b7e5dd9811cbc7636e281 (patch) | |
tree | e0484190c8237897b389eefdca9b867ab47c9894 | |
parent | e2a8085635fe6708d5b379dafa93940e46656c37 (diff) | |
parent | 73d497fe28c792b1c59df99c22225ad6c60c07fc (diff) |
Merge pull request #177 from nextcloud/backport/175/stable18v18.0.2RC2v18.0.2RC1v18.0.2
[stable18] Avoid line breaks after long device names in "df" command
-rw-r--r-- | lib/OperatingSystems/DefaultOs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php index bebbfd2..3581eae 100644 --- a/lib/OperatingSystems/DefaultOs.php +++ b/lib/OperatingSystems/DefaultOs.php @@ -154,7 +154,7 @@ class DefaultOs { */ public function getDiskInfo() { $blacklist = ['', 'Type', 'tmpfs', 'devtmpfs']; - $data = shell_exec('df -T'); + $data = shell_exec('df -TP'); $lines = preg_split('/[\r\n]+/', $data); foreach ($lines as $line) { |