mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 21:15:24 +00:00
Detect if using Git or not
This commit is contained in:
parent
b1c80c1877
commit
ca2da44266
@ -110,13 +110,17 @@ try {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $nolfsprune) {
|
|
||||||
if ($dryrun) {
|
$isGit = Test-Path .git
|
||||||
Write-Output "Would have pruned LFS files"
|
if ($isGit) {
|
||||||
git lfs prune --dry-run
|
if (-not $nolfsprune) {
|
||||||
} else {
|
if ($dryrun) {
|
||||||
Write-Output "Pruning Git LFS files"
|
Write-Output "Would have pruned LFS files"
|
||||||
git lfs prune
|
git lfs prune --dry-run
|
||||||
|
} else {
|
||||||
|
Write-Output "Pruning Git LFS files"
|
||||||
|
git lfs prune
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Write-Output "-- Cleanup finished OK --"
|
Write-Output "-- Cleanup finished OK --"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user