Skip to content

Commit

Permalink
#232: updated kip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Dec 6, 2021
1 parent a2591cf commit c661cb4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions lib/exec/kip.kx
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,13 @@ class KinxPackageLibraryManager(repoMgr_) {
}

private isInstalled(name, version) {
if (installed_.isUndefined) {
installed_ = [];
var dir = $pkgpath / name;
if (File.isDirectory(dir)) {
Directory.walk(dir) { &(verpath)
var ver = verpath.filename();
installed_[name][ver] = true;
};
}
installed_ ??= [];
var dir = $pkgpath / name;
if (File.isDirectory(dir)) {
Directory.walk(dir) { &(verpath)
var ver = verpath.filename();
installed_[name][ver] = true;
};
}
return installed_[name][version];
}
Expand Down Expand Up @@ -753,7 +751,7 @@ class KinxPackageLibraryManager(repoMgr_) {
createFile(PACKAGE_INFO_FILE, { name: name }.toJsonString(true));
mkdir("docs", "README.md",
"<!-- This is an auto-generated sample README file. Modify this as your own README file. -->\n"
"# Kacc\n\n"
"# %{name.toUpper(0, 1)}\n\n"
"## Introduction\n\n"
"This is a directory of documents for the package `%{name}` such as materials below.\n\n"
"- Package Help - this `README.md` will be displayed by `kip help %{name}`\n"
Expand Down

0 comments on commit c661cb4

Please sign in to comment.