From 7332806678ba793c6993be56c5cd3ca467f8c956 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Thu, 9 Jun 2022 15:17:28 -0400 Subject: [PATCH] Fix python folder check --- bootstrap.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 3a018c5..fbf9093 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -10,7 +10,7 @@ if (Get-Command "./python/python.exe" -ErrorAction SilentlyContinue) { curl -Uri "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" -OutFile ./python.zip } - if (Get-Command "./python" -ErrorAction SilentlyContinue) { + if (Test-Path -Path "./python") { Remove-Item -Recurse -ErrorAction:Stop "./python" }