Fix manifest
This commit is contained in:
parent
cd2954d7ca
commit
65c69d58d4
|
@ -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'
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue