mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-26 16:07:13 +00:00
devex: .git is not an extension
This change makes sure Kernel skips `.git` directories when scanning for extensions. This allows me to make a git repository containing example extensions for Puter.
This commit is contained in:
@@ -254,7 +254,13 @@ class Kernel extends AdvancedBase {
|
||||
return;
|
||||
}
|
||||
const mod_dirnames = await fs.promises.readdir(mods_dirpath);
|
||||
|
||||
const ignoreList = new Set([
|
||||
'.git',
|
||||
]);
|
||||
|
||||
for ( const mod_dirname of mod_dirnames ) {
|
||||
if ( ignoreList.has(mod_dirname) ) continue;
|
||||
mod_installation_promises.push(this.install_extern_mod_({
|
||||
mod_install_root_context,
|
||||
mod_dirname,
|
||||
|
||||
Reference in New Issue
Block a user