diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-24 05:50:52 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-24 05:50:52 +0800 |
| commit | b2d385d9717bfdd381436393325bcab389418bc8 (patch) | |
| tree | fb4796d0f07ff32d6379fa4f794a62ab9c356a15 /scripts/dev/dev_deploy.ps1 | |
| parent | 7aa5f292adbd0328e815a034c3300175849c8f36 (diff) | |
Add timing and suppress output in deployment scripts
Diffstat (limited to 'scripts/dev/dev_deploy.ps1')
| -rw-r--r-- | scripts/dev/dev_deploy.ps1 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/dev/dev_deploy.ps1 b/scripts/dev/dev_deploy.ps1 index 8e3a8e9..688b8d1 100644 --- a/scripts/dev/dev_deploy.ps1 +++ b/scripts/dev/dev_deploy.ps1 @@ -7,9 +7,13 @@ $scriptDir = Split-Path $scriptPath -Parent # Run script to hide ignored files $hideScriptPath = Join-Path $scriptDir "hide_ignored_file.ps1" if (Test-Path $hideScriptPath) { - & $hideScriptPath + try { + & $hideScriptPath + } catch { + Write-Warning "Run `"hide_ignored_file.ps1`" failed" + } } else { - Write-Warning "hide_ignored_file.ps1 not found at $hideScriptPath" + Write-Warning "Script `"hide_ignored_file.ps1`" not found at $hideScriptPath" } Set-Location (Join-Path $scriptDir "..\..") |
