From 5aab63648392a54320d7704507c6ef4d358cc597 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 26 Aug 2023 21:18:55 +0200 Subject: fixed edge case where packages.list() still broke Oopsie woopsie, my badddd, so sowwieeee, i wwwont doww it agaainnn! --- src/modules/packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/packages.js b/src/modules/packages.js index d6420b9..38303e2 100644 --- a/src/modules/packages.js +++ b/src/modules/packages.js @@ -61,7 +61,7 @@ packages.split_name = (name) => { packages.list = (dir = packages.path, no_functions) => { update_path(); - if (! fs.existsSync(packages.path) + if (! fs.existsSync(dir) || dir == "R2Northstar/packages") { return {}; } -- cgit v1.2.3