mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Not using Folder if its a git repository.
This commit is contained in:
parent
65956ab863
commit
bc3828179b
1 changed files with 3 additions and 3 deletions
|
@ -128,11 +128,11 @@ class UpgradeShell extends Shell {
|
|||
if (is_dir($old)) {
|
||||
$this->out(__d('cake_console', 'Moving %s to %s', $old, $new));
|
||||
if (!$this->params['dry-run']) {
|
||||
$Folder = new Folder($old);
|
||||
$Folder->move($new);
|
||||
|
||||
if ($this->params['git']) {
|
||||
exec('git mv -f ' . escapeshellarg($old) . ' ' . escapeshellarg($new));
|
||||
} else {
|
||||
$Folder = new Folder($old);
|
||||
$Folder->move($new);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue