]> source.dussan.org Git - nextcloud-server.git/commitdiff
Keep cypress if git
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 1 Sep 2019 18:46:13 +0000 (20:46 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 1 Sep 2019 18:46:13 +0000 (20:46 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Repair/NC16/RemoveCypressFiles.php

index 4b6108d0232809d3735b426ce5ec6f5834f89e84..400d822b97d4334c6d6207318e788b52611358f6 100644 (file)
@@ -51,6 +51,10 @@ class RemoveCypressFiles implements IRepairStep {
        }
 
        public function run(IOutput $output): void {
+               if (\OC_Util::getChannel() === 'git') {
+                       return;
+               }
+               
                $file = $this->pathToViewerApp . '/cypress.json';
                if (file_exists($file)) {
                        unlink($file);