fixes #5194, cake bake with no params

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7499 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-08-25 18:52:50 +00:00
parent 33da4b0e75
commit 78a2eb2723
2 changed files with 4 additions and 1 deletions

View file

@ -464,7 +464,7 @@ class ShellDispatcher {
}
$params['app'] = basename($params['app']);
$params['working'] = $params['root'] . '/' . $params['app'];
$params['working'] = rtrim($params['root'], '/') . '/' . $params['app'];
if (!empty($matches[0]) || !empty($isWin)) {
$params = str_replace('/', '\\', $params);

View file

@ -104,6 +104,9 @@ class ProjectTask extends Shell {
$this->err(sprintf(__('Could not set permissions on %s', true), $path . DS .'tmp'));
$this->out(sprintf(__('chmod -R 0777 %s', true), $path . DS .'tmp'));
}
$this->params['working'] = $path;
$this->params['app'] = basename($path);
return true;
}
}