From 7ffa7acea6e11cc6dd8d95fdeb30642ffc186120 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Tue, 8 Nov 2016 11:04:27 +0100 Subject: [PATCH] fixed shell dispatcher failed unit test --- lib/Cake/Console/ShellDispatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Console/ShellDispatcher.php b/lib/Cake/Console/ShellDispatcher.php index 34b98c2db..6de4c7543 100644 --- a/lib/Cake/Console/ShellDispatcher.php +++ b/lib/Cake/Console/ShellDispatcher.php @@ -315,14 +315,14 @@ class ShellDispatcher { } elseif (strpos($params['app'], '/')) { $params['root'] .= '/' . dirname($params['app']); } - + $isWindowsAppPath = $this->_isWindowsPath($params['app']); $params['app'] = basename($params['app']); $params['working'] = rtrim($params['root'], '/'); if (!$isWin || !preg_match('/^[A-Z]:$/i', $params['app'])) { $params['working'] .= '/' . $params['app']; } - if ($this->_isWindowsPath($params['app']) || !empty($isWin)) { + if ($isWindowsAppPath || !empty($isWin)) { $params = str_replace('/', '\\', $params); }