Escape " from remote commands.

This commit is contained in:
Andrés Montañez
2012-10-24 19:52:29 -02:00
parent ad6f3cb6ee
commit 14b36eab88
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class Mage_Task_BuiltIn_Releases_Rollback
Mage_Console::output('Running <purple>Rollback Release [id=' . $releaseId . ']</purple> ... ', 2, false);
$userGroup = '';
$resultFetch = $this->_runRemoteCommand('ls -ld ' . $rollbackTo . ' | awk \'{print \$3\":\"\$4}\'', $userGroup);
$resultFetch = $this->_runRemoteCommand('ls -ld ' . $rollbackTo . ' | awk \'{print \$3":"\$4}\'', $userGroup);
$command = 'rm -f ' . $symlink
. ' && '
. 'ln -sf ' . $rollbackTo . ' ' . $symlink