From f8b2604536d7f0ac6d585577e518ef097c7bfcff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8C=C3=A1bera?= Date: Sat, 11 Sep 2021 15:12:14 -0700 Subject: [PATCH] python: Reset ansi sequence to prevent color leak from installer ![Vanilla scoop docker image execution after fix](https://i.imgur.com/tdjP618.png) ![Before fix](https://i.imgur.com/KAnzkIu.png) ![Fixed installation](https://i.imgur.com/C6Ga6lg.png) Ash258/Scoop-Core#138 --- bucket/python.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bucket/python.json b/bucket/python.json index 78d105f0d8..4e6ce81d82 100644 --- a/bucket/python.json +++ b/bucket/python.json @@ -52,6 +52,7 @@ "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }", "Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse", "& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null", + "Write-Output \"`e[0m\" # Reset ansi to prevent color leak from installer", "if ($global) {", " $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''", " env 'PATHEXT' $true \"$pathext;.PY;.PYW\"", @@ -77,14 +78,14 @@ "idle3" ] ], - "persist": [ - "Scripts", - "Lib\\site-packages" - ], "env_add_path": [ "Scripts", "." ], + "persist": [ + "Scripts", + "Lib\\site-packages" + ], "checkver": { "url": "https://www.python.org/downloads/windows/", "regex": "Latest Python 3 Release - Python ([\\d.]+)"