forked from cory/tildefriends
How did this ever work?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3208 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
9bfb0d6a4c
commit
b917cbe08f
@ -331,7 +331,7 @@ function getProcess(packageOwner, packageName, key, options) {
|
|||||||
let source = {};
|
let source = {};
|
||||||
for (let i in manifest.require) {
|
for (let i in manifest.require) {
|
||||||
let name = manifest.require[i];
|
let name = manifest.require[i];
|
||||||
source[manifest[i]] = File.readFile("packages/" + process.packageOwner + "/" + name + "/" + name + ".js");
|
source[name] = File.readFile("packages/" + process.packageOwner + "/" + name + "/" + name + ".js");
|
||||||
}
|
}
|
||||||
process.task.setRequires(source);
|
process.task.setRequires(source);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,8 @@ function fileList(settings) {
|
|||||||
terminal.setEcho(false);
|
terminal.setEcho(false);
|
||||||
terminal.clear();
|
terminal.clear();
|
||||||
terminal.print(settings.title);
|
terminal.print(settings.title);
|
||||||
if (core.user.credentials.permissions.authenticated) {
|
if (core.user.credentials.permissions
|
||||||
|
&& core.user.credentials.permissions.authenticated) {
|
||||||
terminal.print({command: "new"});
|
terminal.print({command: "new"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +80,8 @@ function fileList(settings) {
|
|||||||
});
|
});
|
||||||
for (var i = 0; i < entries.length; i++) {
|
for (var i = 0; i < entries.length; i++) {
|
||||||
if (entries[i].substring(0, prefix.length) == prefix) {
|
if (entries[i].substring(0, prefix.length) == prefix) {
|
||||||
if (core.user.credentials.permissions.authenticated) {
|
if (core.user.credentials.permissions
|
||||||
|
&& core.user.credentials.permissions.authenticated) {
|
||||||
terminal.print(
|
terminal.print(
|
||||||
"* ",
|
"* ",
|
||||||
{style: "font-weight: bold", value: {command: "open:" + entries[i], value: entries[i].substring(prefix.length)}},
|
{style: "font-weight: bold", value: {command: "open:" + entries[i], value: entries[i].substring(prefix.length)}},
|
||||||
|
Loading…
Reference in New Issue
Block a user