diff --git a/manifest.yml b/manifest.yml index 3ac1967..f90f47f 100644 --- a/manifest.yml +++ b/manifest.yml @@ -2,7 +2,7 @@ _version: '20220212062110' plugins: echo: - remote: 'https://git.lyte.dev/lytedev/echo.git' + remote: 'https://git.lyte.dev/lytedev/echo-cli-plugin' run: '{plugin_dir}/echo.sh' # this is the default installCommand, so we don't really need to specify it installCommand: ['git', 'clone', '{remote}', '{plugin_dir}'] @@ -14,5 +14,5 @@ plugins: # postInstallCommand: shutup: - remote: 'https://git.lyte.dev/lytedev/shutup-cli-plugin.git' + remote: 'https://git.lyte.dev/lytedev/shutup-cli-plugin' run: '{plugin_dir}/shutup.sh' diff --git a/src/core.ts b/src/core.ts index e90ffa6..fcbeefb 100644 --- a/src/core.ts +++ b/src/core.ts @@ -47,12 +47,14 @@ async function installPlugin(pluginName: string) { console.error(`plugin ${pluginName} has no entry`) Deno.exit(1) } - const cmd = pluginManifestData.installCommand || ["git", "clone", pluginManifestData.remote, pluginName].map(segment => + const cmd = (pluginManifestData.installCommand || ["git", "clone", pluginManifestData.remote, pluginName]).map((segment: string) => segment .replace('{remote}', pluginManifestData.remote) .replace('{plugin_dir}', path.join(PLUGINS_DIR, pluginName)) ) + console.debug(cmd) + const installCommand = Deno.run({ stdout: "piped", stderr: "piped",