Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdevbtw committed May 15, 2024
1 parent 322d14d commit 22f7a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modes/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { usePantry } = hooks
// * maybe impl `$XDG_BIN_HOME`

export function is_unsafe(unsafe: boolean): boolean {
const env = parseInt(Deno.env.get("PKGX_UNSAFE_INSTALL") || "0")
const env = parseInt(Deno.env.get("PKGX_UNSAFE_INSTALL") || "0") ? true : false;
return env || unsafe
}

Expand Down

0 comments on commit 22f7a97

Please sign in to comment.