Skip to content

Commit 34178c6

Browse files
committed
try fix
1 parent 4e8771a commit 34178c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/Shell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static public function hide($hidden = true) {
112112
*/
113113
static public function is_windows() {
114114
$test_is_windows = getenv( 'WP_CLI_TEST_IS_WINDOWS' );
115-
if ( false !== $test_is_windows ) {
115+
if ( false !== $test_is_windows && '' !== $test_is_windows ) {
116116
return (bool) $test_is_windows;
117117
}
118118
return strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN';

0 commit comments

Comments
 (0)