diff --git a/Mage/Command/BuiltIn/UpgradeCommand.php b/Mage/Command/BuiltIn/UpgradeCommand.php index 168096e..9ce2581 100644 --- a/Mage/Command/BuiltIn/UpgradeCommand.php +++ b/Mage/Command/BuiltIn/UpgradeCommand.php @@ -81,7 +81,8 @@ class UpgradeCommand extends InstallCommand Console::executeCommand('rm -rf ' . MAGALLANES_DIRECTORY); Console::executeCommand('mkdir -p ' . MAGALLANES_DIRECTORY); - Console::executeCommand('cd ' . MAGALLANES_DIRECTORY . ' && tar xfz ' . $tarballFile); + Console::executeCommand('cd ' . dirname($tarballFile) . ' && tar xfz ' . $tarballFile); + Console::executeCommand('mv ' . dirname($tarballFile) . '/magallanes ' . MAGALLANES_DIRECTORY); Console::output('OK', 0, 1); }