Skip to content

Commit

Permalink
Fix drush-ops#2379. drush_is_windows() no longer accepted an parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored and gaelg committed Nov 7, 2016
1 parent 8de543e commit 8eb08a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/startup.inc
Original file line number Diff line number Diff line change
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() {
return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
function drush_is_windows($os = PHP_OS) {
return strtoupper(substr($os, 0, 3)) === 'WIN';
}

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

0 comments on commit 8eb08a4

Please sign in to comment.