From 76c13ac5fb3b05e9d7f6fd61e7c81c74a3875cd7 Mon Sep 17 00:00:00 2001 From: QWsin Date: Mon, 30 Mar 2026 14:07:23 +0800 Subject: [PATCH] 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. --- scripts/hooks/desktop-notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hooks/desktop-notify.js b/scripts/hooks/desktop-notify.js index efab5a22..3d9a79ed 100644 --- a/scripts/hooks/desktop-notify.js +++ b/scripts/hooks/desktop-notify.js @@ -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:');