mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-02 09:20:17 +00:00
check for package existence first
This commit is contained in:
@@ -35,6 +35,11 @@ pkgs.create = function (Pkgs, basepath) {
|
||||
};
|
||||
|
||||
Pkgs.get = function (node) {
|
||||
return fs.promises.access(path.join(basepath, node)).then(function () {
|
||||
return Pkgs._get(node);
|
||||
});
|
||||
};
|
||||
Pkgs._get = function (node) {
|
||||
var yash = path.join(basepath, node, 'package.yash');
|
||||
var curlbash = path.join(basepath, node, 'install.sh');
|
||||
var readme = path.join(basepath, node, 'README.md');
|
||||
|
||||
Reference in New Issue
Block a user