Skip to content

Commit 200d91d

Browse files
committed
webui/kpm: quote for getKpmInfo
fix failed to get module info when file name has space
1 parent 657e55b commit 200d91d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webui/page/kpm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let allKpms = [];
55
let searchQuery = '';
66

77
async function getKpmInfo(path) {
8-
const result = await exec(`kptools -l -M ${path}`, { env: { PATH: `${modDir}/bin` } });
8+
const result = await exec(`kptools -l -M "${path}"`, { env: { PATH: `${modDir}/bin` } });
99
if (import.meta.env.DEV) { // vite debug
1010
result.stdout = 'name=Test Module\nversion=1.0.0\ndescription=This is a test module\nauthor=KOWX712\nlicense=MIT\nargs=test';
1111
}

0 commit comments

Comments
 (0)