Skip to content

Commit 985d818

Browse files
fix: bootstrap.ps1 parse error on Windows PowerShell 5.1
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4badaf6 commit 985d818

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/bootstrap.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ function Test-GraphstackCli {
5252
function Install-GraphstackPackage {
5353
if ((Test-GraphstackCli) -and (Test-WheelAssets)) {
5454
$ver = (& $python.Exe @($python.PreArgs) -m graphstack --version 2>$null)
55-
Write-Host "Step 1/2: GraphStack already installed ($ver) skipping pip."
55+
Write-Host "Step 1/2: GraphStack already installed ($ver) - skipping pip."
5656
return
5757
}
5858

5959
Write-Host 'Step 1/2: Installing MertCapkin_GraphStack + graphify from PyPI...'
6060
$rc = Invoke-GraphstackPython @('-m', 'pip', 'install', '--upgrade', $Pkg)
6161
if ($rc -ne 0) {
62-
Write-Host 'PyPI install failed trying GitHub source...' -ForegroundColor Yellow
62+
Write-Host 'PyPI install failed - trying GitHub source...' -ForegroundColor Yellow
6363
$rc = Invoke-GraphstackPython @('-m', 'pip', 'install', '--upgrade', $GitSpec)
6464
if ($rc -ne 0) {
6565
Write-Error 'Could not install graphstack. Check network and Python pip.'
@@ -68,7 +68,7 @@ function Install-GraphstackPackage {
6868
}
6969

7070
if (-not (Test-WheelAssets)) {
71-
Write-Host 'PyPI wheel missing .cursor assets reinstalling from PyPI...' -ForegroundColor Yellow
71+
Write-Host 'PyPI wheel missing .cursor assets - reinstalling from PyPI...' -ForegroundColor Yellow
7272
$rc = Invoke-GraphstackPython @('-m', 'pip', 'install', '--upgrade', '--force-reinstall', $Pkg)
7373
if ($rc -ne 0 -or -not (Test-WheelAssets)) {
7474
Write-Host 'Trying GitHub source...' -ForegroundColor Yellow
@@ -121,7 +121,7 @@ if (-not (Test-Path -LiteralPath $ruleFile)) {
121121

122122
if ($initRc -ne 0) {
123123
Write-Host ''
124-
Write-Host "Init reported issues (exit $initRc) but core files are present." -ForegroundColor Yellow
124+
Write-Host ('Init reported issues (exit {0}) but core files are present.' -f $initRc) -ForegroundColor Yellow
125125
Write-Host 'Run: py -3 -m graphstack doctor'
126126
}
127127

0 commit comments

Comments
 (0)