🐛 init submodules first

This commit is contained in:
Ondřej Samohel 2022-07-13 18:06:03 +02:00
parent 540e94e726
commit 2d2bf24c45
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -28,9 +28,11 @@ $current_dir = Get-Location
$script_dir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$openpype_root = (Get-Item $script_dir).parent.FullName
& git submodule update --init --recursive
# Install PSWriteColor to support colorized output to terminal
$env:PSModulePath = $env:PSModulePath + ";$($openpype_root)\vendor\powershell"
function Exit-WithCode($exitcode) {
# Only exit this host process if it's a child of another PowerShell parent process...
$parentPID = (Get-CimInstance -ClassName Win32_Process -Filter "ProcessId=$PID" | Select-Object -Property ParentProcessId).ParentProcessId