Skip to content

Commit

Permalink
Add portability flag to df call when getting disk usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinj committed Dec 11, 2017
1 parent 01b2493 commit 033207c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Probes/AvailableDiskSpace.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function checkForReasonsToSkipCheck()

protected function getAvailableDiskSpace()
{
$command = sprintf('%s -k %s | %s -vi filesystem',
$command = sprintf('%s -k %s -P | %s -vi filesystem',
$this->escapeShellArgument($this->findExecutable('df')),
$this->escapeShellArgument($this->diskFolder),
$this->escapeShellArgument($this->findExecutable('grep'))
Expand Down

0 comments on commit 033207c

Please sign in to comment.