Mock Rclone installation
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		@@ -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");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user