mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Fix problem with running get latest from batch file
This commit is contained in:
parent
82fd0bfb4f
commit
b9e4ae2fb6
@ -5,9 +5,11 @@ function Find-DefaultTarget {
|
||||
[string]$preferred = "Editor"
|
||||
)
|
||||
|
||||
$sourcefolder = Join-Path (Resolve-Path $srcfolder) "Source"
|
||||
|
||||
# Enumerate the Target.cs files in Source folder and use the default one
|
||||
# This lets us not assume what the modules are called exactly
|
||||
$targetFiles = Get-ChildItem (Join-Path $srcfolder "Source" "*.Target.cs")
|
||||
$targetFiles = Get-ChildItem "$sourcefolder\*.Target.cs"
|
||||
|
||||
foreach ($file in $targetfiles) {
|
||||
if ($file.Name -like "*$preferred.Target.cs") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user