fix: syntax error in shell command by closing quotes for python and script paths

This commit is contained in:
yczpf2019
2026-01-24 18:41:25 +08:00
parent c7d57d39a1
commit d776e24d2f

View File

@@ -12,7 +12,7 @@ export default class ShellMicroPython extends Shell {
async burn(config) { async burn(config) {
const info = { const info = {
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath), indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
esptool: `"${PYTHON.path.cli}" "${MICROPYTHON.path.esptool}`, esptool: `"${PYTHON.path.cli}" "${MICROPYTHON.path.esptool}"`,
com: config.port com: config.port
}; };
const command = MString.tpl(config.command, info); const command = MString.tpl(config.command, info);
@@ -22,7 +22,7 @@ export default class ShellMicroPython extends Shell {
async upload(config) { async upload(config) {
const info = { const info = {
indexPath: path.resolve(CLIENT_PATH, config.boardDirPath), indexPath: path.resolve(CLIENT_PATH, config.boardDirPath),
ampy: `"${PYTHON.path.cli}" "${MICROPYTHON.path.ampy}`, ampy: `"${PYTHON.path.cli}" "${MICROPYTHON.path.ampy}"`,
com: config.port com: config.port
}; };
const command = MString.tpl(config.command, info); const command = MString.tpl(config.command, info);