aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-08-26 21:18:55 +0200
committer0neGal <mail@0negal.com>2023-08-26 21:18:55 +0200
commit5aab63648392a54320d7704507c6ef4d358cc597 (patch)
treebadb85a17316fe82fc635013ebdb89a67b7178a1
parent890d246856c28e9a13d040b842d1511100ea5c84 (diff)
downloadViper-5aab63648392a54320d7704507c6ef4d358cc597.tar.gz
Viper-5aab63648392a54320d7704507c6ef4d358cc597.zip
fixed edge case where packages.list() still broke
Oopsie woopsie, my badddd, so sowwieeee, i wwwont doww it agaainnn!
-rw-r--r--src/modules/packages.js2
1 files changed, 1 insertions, 1 deletions
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 {};
}