Skip to content

Commit

Permalink
Merge pull request #1 from hestiacp/divinity76-patch-1
Browse files Browse the repository at this point in the history
Cygwin compatibility
  • Loading branch information
jaapmarcus committed Jul 23, 2023
2 parents 89cbab9 + d4d7cc3 commit 7fd1a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hestiacp/quoteshellarg/quoteshellarg.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function quoteshellarg(string $arg): string
{
static $isUnix = null;
if ($isUnix === null) {
$isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true);
$isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true) || PHP_OS === 'CYGWIN';
}
if ($isUnix) {
// PHP's built-in escapeshellarg() for unix is kindof garbage: https://3v4l.org/Hkv7h
Expand Down

0 comments on commit 7fd1a3a

Please sign in to comment.