mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 21:15:24 +00:00
Compatibility with Powershell 7+
This commit is contained in:
parent
2966cf3be0
commit
eade9b6bc1
@ -22,7 +22,7 @@ function Get-Uproject-Filename {
|
||||
} else {
|
||||
# can return multiple results, pick the first one
|
||||
$matchedfile = @(Get-ChildItem -Path $srcfolder -Filter *.uproject)[0]
|
||||
$projfile = Join-Path $srcfolder $matchedfile
|
||||
$projfile = $matchedfile.FullName
|
||||
}
|
||||
|
||||
# Resolve to absolute (do it here and not in join so missing file is friendlier error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user