This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$projectFolder = "" | |
if (-not $projectFolder -or -not (Test-Path $projectFolder -PathType Container)) { | |
do { | |
$projectFolder = Read-Host "Enter the full path to your project folder" | |
if (-not (Test-Path $projectFolder -PathType Container)) { | |
Write-Host "❌ '$projectFolder' is not a valid directory." -ForegroundColor Red | |
} | |
} until (Test-Path $projectFolder -PathType Container) | |
} |