Skip to content

Commit 4eb6ac0

Browse files
committed
fix(installer): replace -ine operator flagged by the typos workflow
Use [string]::Equals(..., OrdinalIgnoreCase) for the Pythinker leaf-name check; identical semantics, and the repo has no typos config to suppress the PowerShell -ine operator being flagged as a misspelling.
1 parent e80b2c3 commit 4eb6ac0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/public/uninstall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
return $null
436436
}
437437

438-
if ([IO.Path]::GetFileName($full) -ine "Pythinker") {
438+
if (-not [string]::Equals([IO.Path]::GetFileName($full), "Pythinker", [System.StringComparison]::OrdinalIgnoreCase)) {
439439
Record-Warning "refusing install directory not named 'Pythinker': $full" $null
440440
return $null
441441
}

scripts/uninstall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
return $null
436436
}
437437

438-
if ([IO.Path]::GetFileName($full) -ine "Pythinker") {
438+
if (-not [string]::Equals([IO.Path]::GetFileName($full), "Pythinker", [System.StringComparison]::OrdinalIgnoreCase)) {
439439
Record-Warning "refusing install directory not named 'Pythinker': $full" $null
440440
return $null
441441
}

web/public/uninstall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
return $null
436436
}
437437

438-
if ([IO.Path]::GetFileName($full) -ine "Pythinker") {
438+
if (-not [string]::Equals([IO.Path]::GetFileName($full), "Pythinker", [System.StringComparison]::OrdinalIgnoreCase)) {
439439
Record-Warning "refusing install directory not named 'Pythinker': $full" $null
440440
return $null
441441
}

0 commit comments

Comments
 (0)