Remove duplicate OpenCode plugin autoload and move examples
This commit is contained in:
@@ -7,7 +7,7 @@ OPENCODE_PLUGIN_DIR="${HOME}/.config/opencode/plugins"
|
||||
CLIENT_CONFIG="${CONFIG_DIR}/clients.json"
|
||||
|
||||
mkdir -p "${CONFIG_DIR}" "${OPENCODE_PLUGIN_DIR}"
|
||||
install -m 0755 "${ROOT}/.opencode/plugins/ollama-swap.js" "${OPENCODE_PLUGIN_DIR}/ollama-swap.js"
|
||||
install -m 0755 "${ROOT}/examples/opencode/ollama-swap.js" "${OPENCODE_PLUGIN_DIR}/ollama-swap.js"
|
||||
|
||||
if [ ! -f "${CLIENT_CONFIG}" ]; then
|
||||
cat > "${CLIENT_CONFIG}" <<'JSON'
|
||||
|
||||
Reference in New Issue
Block a user