diff --git a/ue4-build.ps1 b/ue4-build.ps1 index 5514524..7f5c371 100644 --- a/ue4-build.ps1 +++ b/ue4-build.ps1 @@ -104,17 +104,6 @@ try { throw "Build.bat missing at $buildbat : Aborting" } - # Run cleanup tool - $cleanupargs = @() - if ($nocloseeditor) { - $cleanupargs += "-nocloseeditor" - } - if ($dryrun) { - $cleanupargs += "-dryrun" - } - # Use Invoke-Expression so we can use a string as options - Invoke-Expression "&'$PSScriptRoot/ue4-cleanup.ps1' $cleanupargs" - $buildargs = "" switch ($mode) { diff --git a/ue4-get-latest.ps1 b/ue4-get-latest.ps1 index 5a60161..ea2972c 100644 --- a/ue4-get-latest.ps1 +++ b/ue4-get-latest.ps1 @@ -69,6 +69,17 @@ try { } } + # Run cleanup tool + $cleanupargs = @() + if ($nocloseeditor) { + $cleanupargs += "-nocloseeditor" + } + if ($dryrun) { + $cleanupargs += "-dryrun" + } + # Use Invoke-Expression so we can use a string as options + Invoke-Expression "&'$PSScriptRoot/ue4-cleanup.ps1' $cleanupargs" + # Use rebase pull to keep simpler Write-Output "Pulling latest from Git..." git pull --rebase --recurse-submodules