Skip to content

Commit 39d592c

Browse files
authored
Cygwin compatibility
1 parent 676868a commit 39d592c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Divinity76/quoteshellarg/quoteshellarg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function quoteshellarg(string $arg): string
1515
{
1616
static $isUnix = null;
1717
if ($isUnix === null) {
18-
$isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true);
18+
$isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true) || PHP_OS === 'CYGWIN';
1919
}
2020
if ($isUnix) {
2121
// PHP's built-in escapeshellarg() for unix is kindof garbage: https://3v4l.org/Hkv7h

0 commit comments

Comments
 (0)