Mock Rclone installation
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-05-31 10:12:52 +00:00
parent 6d940c58b2
commit 7a6e71dc6c
3 changed files with 19 additions and 6 deletions

View File

@ -24,11 +24,17 @@ class Rclone
try
{
$version = $this->exec('--version');
$this->version = explode("\n", $version)[0];
}
catch(ProcessFailedException $e)
{
throw new Exception("Check installation of rclone");
return;
}
$this->version = explode("\n", $version)[0];
if (!\str_contains($this->version, 'rclone')) {
throw new Exception("Rclone not recognized");
}
}