Skip to content

Commit

Permalink
initi
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed May 15, 2024
1 parent ca34f4d commit 9347df3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Cli/AbstractCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,11 @@ public function initMandatoryAfter(
}
$this->cliLog('--------------------------------------------------', 'C');
$this->cliLog('Running npm install', 'C');
\shell_exec("cd {$destination} && npm install"); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_shell_exec
if ($frontendLibsVersion) {
\shell_exec("cd {$destination} && npm install infinum/eightshift-libs#{$frontendLibsVersion}"); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_shell_exec
} else {
\shell_exec("cd {$destination} && npm install infinum/eightshift-libs"); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_shell_exec
}
}

/**
Expand Down

0 comments on commit 9347df3

Please sign in to comment.