mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 09:38:38 -05:00
Fix PowerShell quoting in Windows Docker Python alias step.
Use single-quoted python -c code in the Docker RUN command so the command parses correctly under pwsh -Command and avoids parser errors during image build.
This commit is contained in:
@@ -227,7 +227,7 @@ RUN Write-Host '=== STARTING PYTHON INSTALLATION ===' ; `
|
||||
Write-Host "❌ Python install failed: version check exited $LASTEXITCODE" ; `
|
||||
exit 1 ; `
|
||||
} ; `
|
||||
$pyExe = (python -c "import sys; print(sys.executable)").Trim() ; `
|
||||
$pyExe = (python -c 'import sys; print(sys.executable)').Trim() ; `
|
||||
$pyDir = Split-Path $pyExe -Parent ; `
|
||||
$py3Exe = Join-Path $pyDir 'python3.exe' ; `
|
||||
if (-not (Test-Path $py3Exe)) { `
|
||||
|
||||
Reference in New Issue
Block a user