aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown2018-04-11 17:41:37 +0100
committerUnknown2018-04-11 17:41:37 +0100
commitb0f99897d43e9ee9f711e86a305b2de0e73117b5 (patch)
tree061de0265cc5c88ef9fed759985807ad5e4e6be0
parentd8ec576d4d36fd1ce0a501ae5372ad52296b1dc9 (diff)
fix add-repo, rm-repo
-rw-r--r--pkg93.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg93.js b/pkg93.js
index 69c5b76..a136e31 100644
--- a/pkg93.js
+++ b/pkg93.js
@@ -193,6 +193,7 @@ pkg93 <span style='color:#0f0'>rm</span> <span style='color:#77f'>kebab</span>`;
} else if (args[0] == "add-repo") {
try {
config.repos.push(args[1]); // well, that was easy
+ localStorage[".pkg93/config.json"] = JSON.stringify(config);
$log("<b><span style='color:#0f0'>OK</span></b> Done!\n Run \"pkg93 pull\" to update the package listing.");
} catch (err) {
$log("<b><span style='color:#f00'>ERR</span></b> " + err.message);