Add darwin to if block
Otherwise it would fall into the 'win' else block because strpos($os, 'win') does also match 'darwin' what is the `php_uname` for OS X.
This commit is contained in:
parent
766314a6be
commit
bf84cd4bcc
|
@ -151,7 +151,7 @@ class LargeFileHelper {
|
||||||
$result = null;
|
$result = null;
|
||||||
if (strpos($os, 'linux') !== false) {
|
if (strpos($os, 'linux') !== false) {
|
||||||
$result = $this->exec("stat -c %s $arg");
|
$result = $this->exec("stat -c %s $arg");
|
||||||
} else if (strpos($os, 'bsd') !== false) {
|
} else if (strpos($os, 'bsd') !== false || strpos($os, 'darwin') !== false) {
|
||||||
$result = $this->exec("stat -f %z $arg");
|
$result = $this->exec("stat -f %z $arg");
|
||||||
} else if (strpos($os, 'win') !== false) {
|
} else if (strpos($os, 'win') !== false) {
|
||||||
$result = $this->exec("for %F in ($arg) do @echo %~zF");
|
$result = $this->exec("for %F in ($arg) do @echo %~zF");
|
||||||
|
|
Loading…
Reference in New Issue