[bugfix] wrap dotnet cmdlet's path argument with double quotes for installing bsipa

This commit is contained in:
silentrald
2024-08-24 21:41:10 +08:00
parent 3ff3ec7410
commit f6f69e2f13
@@ -147,7 +147,7 @@ export class BsModsManagerService {
return new Promise<boolean>(resolve => {
const cmd = process.platform === 'linux'
? `screen -dmS "BSIPA" dotnet ${ipaPath} ${args.join(" ")}` // Must run through screen, otherwise BSIPA tries to move console cursor and crashes.
? `screen -dmS "BSIPA" dotnet "${ipaPath}" ${args.join(" ")}` // Must run through screen, otherwise BSIPA tries to move console cursor and crashes.
: `"${ipaPath}" ${args.join(" ")}`;
log.info("START IPA PROCESS", cmd);