diff --git a/.vscode/automatizadores/bootstrap-workspace.ps1 b/.vscode/automatizadores/bootstrap-workspace.ps1 index 3b00a66..4516979 100644 --- a/.vscode/automatizadores/bootstrap-workspace.ps1 +++ b/.vscode/automatizadores/bootstrap-workspace.ps1 @@ -1,10 +1,10 @@ -$ErrorActionPreference = 'Stop' - param( [string]$TargetDir, [switch]$Force ) +$ErrorActionPreference = 'Stop' + if ([string]::IsNullOrWhiteSpace($TargetDir)) { Write-Host "Uso: .vscode/automatizadores/bootstrap-workspace.ps1 [-Force]" exit 1 diff --git a/.vscode/automatizadores/sync_vitruvio_zip.ps1 b/.vscode/automatizadores/sync_vitruvio_zip.ps1 index 4e6d19a..0707ef2 100644 --- a/.vscode/automatizadores/sync_vitruvio_zip.ps1 +++ b/.vscode/automatizadores/sync_vitruvio_zip.ps1 @@ -1,10 +1,10 @@ -$ErrorActionPreference = 'Stop' - param( [string]$TargetDir, [string]$ExportUrl ) +$ErrorActionPreference = 'Stop' + if ([string]::IsNullOrWhiteSpace($TargetDir) -or [string]::IsNullOrWhiteSpace($ExportUrl)) { Write-Host "Uso: sync_vitruvio_zip.ps1 " exit 1