mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Compatibility with Powershell 7+
This commit is contained in:
parent
2966cf3be0
commit
eade9b6bc1
@ -22,7 +22,7 @@ function Get-Uproject-Filename {
|
|||||||
} else {
|
} else {
|
||||||
# can return multiple results, pick the first one
|
# can return multiple results, pick the first one
|
||||||
$matchedfile = @(Get-ChildItem -Path $srcfolder -Filter *.uproject)[0]
|
$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)
|
# 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