diff --git a/includes/startup.inc b/includes/startup.inc index dd2e3e0240..d700b61172 100644 --- a/includes/startup.inc +++ b/includes/startup.inc @@ -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) {