Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Aug 30, 2024
1 parent f6d5338 commit 7a22eb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/igir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ export default class Igir {
path.join(path.resolve(Package.DIRECTORY), defaultFileName),
path.join(os.homedir(), defaultFileName),
path.join(process.cwd(), defaultFileName),
].filter((filePath) => filePath && !filePath.startsWith(os.tmpdir()));
]
.filter((filePath) => filePath && !filePath.startsWith(os.tmpdir()))
.reduce(ArrayPoly.reduceUnique(), []);

// Next, try to use an already existing path
const exists = await Promise.all(
Expand Down

0 comments on commit 7a22eb1

Please sign in to comment.