Allow a user to pick existing sshkeys from ~/.ssh

This commit is contained in:
Nick O'Leary
2018-01-10 17:37:41 +00:00
parent 00a396014b
commit 6516e0dfd2
8 changed files with 268 additions and 131 deletions

View File

@@ -949,7 +949,9 @@ function getProject(name) {
function listProjects() {
return fs.readdir(projectsDir).then(function(fns) {
var dirs = [];
fns.sort().filter(function(fn) {
fns.sort(function(A,B) {
return A.toLowerCase().localeCompare(B.toLowerCase());
}).filter(function(fn) {
var fullPath = fspath.join(projectsDir,fn);
if (fn[0] != ".") {
var stats = fs.lstatSync(fullPath);