Skip to content

Commit

Permalink
Make Moodle Install Clone step optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-oswald authored Jul 2, 2024
1 parent 30f6347 commit ceff1fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Installer/MoodleInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function install(): void
$this->moodle->directory,
];

$this->execute->mustRun(new Process($cmd, null, null, null, null));
if (!is_dir($this->moodle->directory)) {
$this->execute->mustRun(new Process($cmd, null, null, null, null));
}

// Expand the path to Moodle so all other installers use absolute path.
$this->moodle->directory = $this->expandPath($this->moodle->directory);
Expand Down

0 comments on commit ceff1fb

Please sign in to comment.