This commit is contained in:
@ -24,12 +24,6 @@ class Rclone
|
||||
protected LoggerInterface $logger;
|
||||
|
||||
protected string $rclonePath;
|
||||
/**
|
||||
* Global options
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
protected array $globalOptions = [];
|
||||
|
||||
protected string $version = "";
|
||||
|
||||
@ -54,7 +48,7 @@ class Rclone
|
||||
$this->version = explode("\n", $process->getOutput())[0];
|
||||
|
||||
if (!\str_contains($this->version, 'rclone')) {
|
||||
throw new Exception("Rclone not recognized");
|
||||
throw new Exception("rclone not recognized");
|
||||
}
|
||||
}
|
||||
|
||||
@ -126,7 +120,6 @@ class Rclone
|
||||
$process = new Process(
|
||||
array_merge(
|
||||
[$this->rclonePath],
|
||||
$this->globalOptions,
|
||||
[$command],
|
||||
$options
|
||||
)
|
||||
@ -134,7 +127,6 @@ class Rclone
|
||||
|
||||
$this->logger->info("Execute command", [$process->getCommandLine()]);
|
||||
|
||||
|
||||
$process->setTimeout(4 * 3600);
|
||||
$process->run();
|
||||
|
||||
|
Reference in New Issue
Block a user