Skip to content

Commit df28bf5

Browse files
jawwad-aliclaude
andcommitted
fix: keep common.ps1 ASCII-only (PowerShell 5.1 compatibility)
My reworded Test-DirHasFiles comment introduced an em dash (U+2014), which tripped tests/test_ps1_encoding.py::test_ps1_file_is_ascii_only -- .ps1 files must stay ASCII for Windows PowerShell 5.1. Replace it with '--', matching the existing comment style in this file (e.g. the Resolve-SpecifyInitDir docstring). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fc492d1 commit df28bf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/powershell/common.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function Test-FileExists {
210210
function Test-DirHasFiles {
211211
param([string]$Path, [string]$Description)
212212
# A directory counts as non-empty when Get-ChildItem returns any entry
213-
# (files or subdirectories) matching the JSON contracts checks in
213+
# (files or subdirectories) -- matching the JSON contracts checks in
214214
# check-prerequisites.ps1 / setup-tasks.ps1, and treating a directory whose
215215
# only contents are subdirectories (e.g. contracts/v1/openapi.yaml) as
216216
# non-empty like bash check_dir. Filtering out subdirectories would

0 commit comments

Comments
 (0)