fix(setup): escape PowerShell vars in printed DATABASE URL

Use ${...} interpolation in init_pg output to avoid InvalidVariableReferenceWithDrive when rendering user:password@host:port.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-06 17:00:04 +08:00
parent 32bfa78383
commit 46745b372f

View file

@ -90,4 +90,4 @@ if (-not $SkipConnectionTest) {
Write-Host ""
Write-Host "Done."
Write-Host "Use this DATABASE URL in netx:"
Write-Host "postgresql+psycopg://$NetxUser:$NetxPassword@$PgHost`:$PgPort/$NetxDatabase"
Write-Host "postgresql+psycopg://${NetxUser}:${NetxPassword}@${PgHost}:$PgPort/$NetxDatabase"