Detect if using Git or not

This commit is contained in:
Steve Streeting 2020-05-29 12:19:22 +01:00
parent b1c80c1877
commit ca2da44266

View File

@ -110,6 +110,9 @@ try {
}
$isGit = Test-Path .git
if ($isGit) {
if (-not $nolfsprune) {
if ($dryrun) {
Write-Output "Would have pruned LFS files"
@ -119,6 +122,7 @@ try {
git lfs prune
}
}
}
Write-Output "-- Cleanup finished OK --"