mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 18:48:56 +02:00
Added Flags to FS tasks (closes #344)
This commit is contained in:
@@ -28,7 +28,7 @@ class MoveTask extends AbstractFileTask
|
||||
public function getDescription()
|
||||
{
|
||||
try {
|
||||
return sprintf('[FS] Move "%s" to "%s"', $this->getFile('from'), $this->getFile('to'));
|
||||
return sprintf('[FS] Move %s"%s" to "%s"', $this->getFlags(), $this->getFile('from'), $this->getFile('to'));
|
||||
} catch (Exception $exception) {
|
||||
return '[FS] Move [missing parameters]';
|
||||
}
|
||||
@@ -38,8 +38,9 @@ class MoveTask extends AbstractFileTask
|
||||
{
|
||||
$moveFrom = $this->getFile('from');
|
||||
$moveTo = $this->getFile('to');
|
||||
$flags = $this->getFlags();
|
||||
|
||||
$cmd = sprintf('mv %s %s', $moveFrom, $moveTo);
|
||||
$cmd = sprintf('mv %s"%s" "%s"', $flags, $moveFrom, $moveTo);
|
||||
|
||||
/** @var Process $process */
|
||||
$process = $this->runtime->runCommand($cmd);
|
||||
|
||||
Reference in New Issue
Block a user