Skip to content

Commit

Permalink
Fix if/else logic for pushing args
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Aug 9, 2024
1 parent ff338a0 commit 8ba63db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,10 @@ class NixInstallerAction extends DetSysAction {
`Installing Determinate Nix using the ${FLAG_DETERMINATE} flag`,
);

if (!this.extraArgs) {
args.push(FLAG_DETERMINATE);
}

if (this.extraArgs && !this.extraArgs.includes(FLAG_DETERMINATE)) {
args.push(FLAG_DETERMINATE);
}
Expand Down

0 comments on commit 8ba63db

Please sign in to comment.