Make file locations work better from global install.

This commit is contained in:
woutersioen
2014-07-16 15:52:23 +02:00
parent ec29aa37b8
commit c7e1175e11
13 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class UnlockCommand
*/
public function run()
{
$lockFile = '.mage/' . $this->getConfig()->getEnvironment() . '.lock';
$lockFile = getcwd() . '/.mage/' . $this->getConfig()->getEnvironment() . '.lock';
if (file_exists($lockFile)) {
@unlink($lockFile);
}
@@ -36,4 +36,4 @@ class UnlockCommand
Console::output('Unlocked deployment to <light_purple>' . $this->getConfig()->getEnvironment() . '</light_purple> environment', 1, 2);
}
}
}