mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Handle code quality comments
This commit is contained in:
parent
fa94784130
commit
d86246a71d
3 changed files with 7 additions and 5 deletions
|
|
@ -64,7 +64,9 @@ if (tool) {
|
|||
} else if (command === "setup") {
|
||||
setup();
|
||||
} else if (command === "--ultimate") {
|
||||
installUltimate();
|
||||
(async () => {
|
||||
await installUltimate();
|
||||
})();
|
||||
} else if (command === "teardown") {
|
||||
teardownDirectories();
|
||||
teardown();
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ function runMsiInstaller(msiPath) {
|
|||
// /i = install
|
||||
// /qn = quiet mode (no UI)
|
||||
ui.writeVerbose(`Running: msiexec /i "${msiPath}" /qn`);
|
||||
execSync(`msiexec /i "${msiPath}" /qn`, { stdio: "inherit" });
|
||||
execSync(`msiexec /i "${msiPath}" /qn`, { stdio: "inherit" }); // noopengrep this is ok, we control the msiPath
|
||||
}
|
||||
|
||||
function stopServiceIfRunning() {
|
||||
|
|
@ -128,7 +128,7 @@ function startService() {
|
|||
return;
|
||||
}
|
||||
} catch {
|
||||
// Service might not exist yet or query failed, proceed with start
|
||||
ui.writeVerbose("Service not found or query failed, attempting to start.");
|
||||
}
|
||||
|
||||
ui.writeVerbose('Running: net start "SafeChainAgent"');
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ import { ui } from "../environment/userInteraction.js";
|
|||
import { initializeCliArguments } from "../config/cliArguments.js";
|
||||
import { installOnWindows } from "./installOnWindows.js";
|
||||
|
||||
export function installUltimate() {
|
||||
export async function installUltimate() {
|
||||
initializeCliArguments(process.argv);
|
||||
|
||||
const operatingSystem = platform();
|
||||
|
||||
if (operatingSystem === "win32") {
|
||||
installOnWindows();
|
||||
await installOnWindows();
|
||||
} else {
|
||||
ui.writeInformation(
|
||||
`${operatingSystem} is not supported yet by safe-chain's ultimate version.`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue