From 7386969c27b1b603239659b31d8433e6d12ced9c Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Fri, 8 May 2026 20:24:09 +0800 Subject: [PATCH] chore: use pwsh 7.6 instead of powershell --- CLAUDE.md | 1 + scripts/managerd.bat | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 54f42fd..0ba1565 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -91,3 +91,4 @@ The config preview rendering pipeline: merge template + profile + overlays → r - **No tabs**: use spaces for indentation in all source files. - **No `fetch()` in templates** for page data — all API calls must go through Go server-side handlers. JS is only for UI interactivity (modals, carousels, confirm dialogs). - **No inline `onclick` with complex quoting** — use `data-*` attributes + event delegation instead. +- **Use `pwsh`** for PowerShell commands (v7.6.1 in PATH, not `powershell.exe`). diff --git a/scripts/managerd.bat b/scripts/managerd.bat index 0c1ea1a..d209830 100644 --- a/scripts/managerd.bat +++ b/scripts/managerd.bat @@ -1,5 +1,5 @@ @echo off setlocal chcp 65001 >nul -powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0managerd.ps1" %* +pwsh -NoProfile -ExecutionPolicy Bypass -File "%~dp0managerd.ps1" %* exit /b %ERRORLEVEL%