Skip to content

💫 Toolkit to help you get started with SDD or any other process!

Update scripts/powershell/check-prerequisites.ps1

Den Delimarskyb03bba37ce93
diff --git a/scripts/powershell/check-prerequisites.ps1 b/scripts/powershell/check-prerequisites.ps1
index 3ce11634f..f039419f7 100644
--- a/scripts/powershell/check-prerequisites.ps1
+++ b/scripts/powershell/check-prerequisites.ps1
@@ -58,8 +58,8 @@ EXAMPLES:
# Get feature paths and validate branch
$paths = Get-FeaturePathsEnv
-$hasGit = Test-Path (Join-Path $paths.REPO_ROOT ".git")
-if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$hasGit)) {
+
+if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$paths.HAS_GIT)) {
exit 1
}