Skip to content

Commit

Permalink
Fix #2394 drush_is_windows().
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Oct 20, 2016
1 parent 2b44148 commit c391c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/startup.inc
Expand Up @@ -128,8 +128,8 @@ function find_wrapper_or_launcher_at_location($location) {
/**
* Determine whether current OS is a Windows variant.
*/
function drush_is_windows($os = PHP_OS) {
return strtoupper(substr($os, 0, 3)) === 'WIN';
function drush_is_windows($os = NULL) {
return strtoupper(substr($os ?: PHP_OS, 0, 3)) === 'WIN';
}

function drush_escapeshellarg($arg, $os = NULL, $raw = FALSE) {
Expand Down

0 comments on commit c391c29

Please sign in to comment.