[Other] Update deps.ps1

This commit is contained in:
Connection Refused
2021-09-26 21:29:46 +08:00
parent 5a1cb67d7f
commit f80b64b368

View File

@@ -3,11 +3,16 @@ Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
.\clean.ps1
Get-ChildItem -Path '.' -Directory | ForEach-Object {
$name=$_.Name
& ".\$name\deps.ps1"
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
if ( -Not $? ) {
exit $lastExitCode
$name=$_.Name
if ( Test-Path ".\$name\deps.ps1" ) {
& ".\$name\deps.ps1"
if ( -Not $? ) {
exit $lastExitCode
}
}
}