fix(hooks): quote PowerShell path in install tip for shell safety

The PowerShell path contains spaces and needs to be quoted
when displayed as a copy-pasteable command.
This commit is contained in:
QWsin
2026-03-30 14:07:23 +08:00
parent 2c1ae27a3a
commit 76c13ac5fb

View File

@@ -141,7 +141,7 @@ function run(raw) {
} else if (ps) {
// PowerShell exists but no BurntToast module
log('[DesktopNotify] Tip: Install BurntToast module to enable notifications:');
log(`[DesktopNotify] ${ps.path} -Command "Install-Module -Name BurntToast -Scope CurrentUser"`);
log(`[DesktopNotify] "${ps.path}" -Command "Install-Module -Name BurntToast -Scope CurrentUser"`);
} else {
// No PowerShell found
log('[DesktopNotify] Tip: Install BurntToast in PowerShell for notifications:');