From f80b64b368719eee4d1cc9d89eea5bbc78381c36 Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Sun, 26 Sep 2021 21:29:46 +0800 Subject: [PATCH] [Other] Update deps.ps1 --- Other/deps.ps1 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Other/deps.ps1 b/Other/deps.ps1 index b9f2e0b9..52da0f50 100644 --- a/Other/deps.ps1 +++ b/Other/deps.ps1 @@ -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 + } } }