Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kabalin committed Aug 22, 2024
1 parent 729d6bd commit cc6210d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Installer/VendorInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,14 @@ public function canInstallNvm(): bool
*/
public function installNvm(): void
{
putenv("NVM_DIR={$this->moodle->directory}/.nvm");
$cmd = 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash';
$process = $this->execute->passThroughProcess(
Process::fromShellCommandline($cmd, $this->moodle->directory, null, null, null)
);
if (!$process->isSuccessful()) {
throw new \RuntimeException('nvm installation failed.');
}
$home = getenv('HOME');
putenv("NVM_DIR={$home}/.nvm");
}

/**
Expand Down

0 comments on commit cc6210d

Please sign in to comment.