diff --git a/external/Get-GitModules.ps1 b/external/Get-GitModules.ps1 index a2791616..85c9850e 100644 --- a/external/Get-GitModules.ps1 +++ b/external/Get-GitModules.ps1 @@ -14,11 +14,11 @@ [String] $PathRegex = "path\s*=\s*(?.*)" [String] $URLRegex = "url\s*=\s*(?.*)" [String] $BranchRegex = "branch\s*=\s*(?.*)" -[String] $Arguments = $($args -join " ") +[String[]] $Arguments = $args #------- Script ---------------------------------------------------------------- -if ([string]::IsNullOrEmpty($Arguments)) { - $Arguments = "--depth 1" +if (-not $Arguments) { + [String[]]$Arguments = "--depth", "1" } foreach ($Line in Get-Content $PSScriptRoot\..\.gitmodules) {