Skip to content

Commit

Permalink
Fixed CI check. Because CI isn't set in the decky docker image...
Browse files Browse the repository at this point in the history
  • Loading branch information
CEbbinghaus committed Dec 20, 2024
1 parent 07065cc commit f05fe63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/ci.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { execSync } from "child_process";
import { fileURLToPath } from "url";
import { Logger } from "./log.mjs";
import { env } from "process";
import { statSync } from "fs";

console.log(JSON.stringify(process.env))
console.log(JSON.stringify(env))

// Because decky builds in docker which has no environment varibles set... 😒
export function IsCI() {
return !!process.env.CI;
return statSync("/plugin/.git").isDirectory();
}

export function SetEnvironment() {
Expand Down

0 comments on commit f05fe63

Please sign in to comment.