mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +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) {
|
||||
Write-Output "Would have pruned LFS files"
|
||||
git lfs prune --dry-run
|
||||
} else {
|
||||
Write-Output "Pruning Git LFS files"
|
||||
git lfs prune
|
||||
|
||||
$isGit = Test-Path .git
|
||||
if ($isGit) {
|
||||
if (-not $nolfsprune) {
|
||||
if ($dryrun) {
|
||||
Write-Output "Would have pruned LFS files"
|
||||
git lfs prune --dry-run
|
||||
} else {
|
||||
Write-Output "Pruning Git LFS files"
|
||||
git lfs prune
|
||||
}
|
||||
}
|
||||
}
|
||||
Write-Output "-- Cleanup finished OK --"
|
||||
|
Loading…
x
Reference in New Issue
Block a user