diff --git a/src/utils/setup/setupAptPack.ts b/src/utils/setup/setupAptPack.ts index b4e5bbfe..4ad430d8 100644 --- a/src/utils/setup/setupAptPack.ts +++ b/src/utils/setup/setupAptPack.ts @@ -30,7 +30,7 @@ export function setupAptPack(name: string, version?: string, repository: boolean exit = spawn.sync(apt, ["install", "-y", name], { stdio: "inherit" }).status } - if (exit !== 0 && exit !== null) { + if (exit !== 0) { throw new Error(`Failed to install ${name} ${version}`) } diff --git a/src/utils/setup/setupChocoPack.ts b/src/utils/setup/setupChocoPack.ts index bb262986..668f8f2d 100644 --- a/src/utils/setup/setupChocoPack.ts +++ b/src/utils/setup/setupChocoPack.ts @@ -21,7 +21,7 @@ export async function setupChocoPack(name: string, version?: string, args: strin exit = spawn.sync("choco", ["install", "-y", name, ...args], { stdio: "inherit" }).status } - if (exit !== 0 && exit !== null) { + if (exit !== 0) { throw new Error(`Failed to install ${name} ${version}`) } diff --git a/src/utils/setup/setupPipPack.ts b/src/utils/setup/setupPipPack.ts index 1a0c2738..e393a51f 100644 --- a/src/utils/setup/setupPipPack.ts +++ b/src/utils/setup/setupPipPack.ts @@ -28,7 +28,7 @@ export async function setupPipPack(name: string, version?: string) { const exit = spawn.sync(pip, ["install", version !== undefined && version !== "" ? `${name}==${version}` : name], { stdio: "inherit", }).status - if (exit !== 0 && exit !== null) { + if (exit !== 0) { throw new Error(`Failed to install ${name} ${version}`) }