diff --git a/applications/more/more.js b/applications/more/more.js index d2f6e81..059e4d8 100644 --- a/applications/more/more.js +++ b/applications/more/more.js @@ -102,8 +102,10 @@ getLists(); } - // TODO: Duplication check async function installRepo(url) { + var repoIsInstalled = installedRepositories.find((repo) => repo.url === url) ? true : false; + if (repoIsInstalled) return; // Repository URL already in the list, don't add it again. + // Test repository const repo = await request(url); if (!repo) return; // Failure