Only switch USVFS branch if USVFS is present.

This commit is contained in:
Mikaël Capelle
2024-06-09 12:19:31 +02:00
parent f9f90efe9f
commit 0921f0c1f1
+3 -1
View File
@@ -55,7 +55,9 @@ mob -l 4 -d . build `
@Dependencies
# handle USVFS (not in modorganizer_super)
Switch-Branch -Folder (Get-Item "build\usvfs")
if (Test-Path "build\usvfs") {
Switch-Branch -Folder (Get-Item "build\usvfs")
}
Get-ChildItem "build/modorganizer_super" -Directory -Exclude ".git" | ForEach-Object {
Switch-Branch -Folder $_