Fix check for ACT environment

This commit is contained in:
Luc Perkins 2024-05-29 15:59:19 -03:00
parent 9c4e8b237e
commit ad8814ae5d
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
2 changed files with 2 additions and 2 deletions

2
dist/index.js generated vendored
View file

@ -97865,7 +97865,7 @@ var NixInstallerAction = class extends DetSysAction {
return this.runnerOs === "Linux"; return this.runnerOs === "Linux";
} }
get runningInAct() { get runningInAct() {
return process.env["ACT"] !== "" && !(process.env["NOT_ACT"] === ""); return process.env["ACT"] !== void 0 && !(process.env["NOT_ACT"] === "");
} }
get runningInNamespaceRunner() { get runningInNamespaceRunner() {
return process.env["NSC_VM_ID"] !== void 0 && !(process.env["NOT_NAMESPACE"] === "true"); return process.env["NSC_VM_ID"] !== void 0 && !(process.env["NOT_NAMESPACE"] === "true");

View file

@ -134,7 +134,7 @@ class NixInstallerAction extends DetSysAction {
} }
private get runningInAct(): boolean { private get runningInAct(): boolean {
return process.env["ACT"] !== "" && !(process.env["NOT_ACT"] === ""); return process.env["ACT"] !== undefined && !(process.env["NOT_ACT"] === "");
} }
private get runningInNamespaceRunner(): boolean { private get runningInNamespaceRunner(): boolean {