SDL_ttf: Fixed default arguments not being passed properly (2d953)

From 2d953d9d222fd57c41c5a718e18ebe00fd9fb06a Mon Sep 17 00:00:00 2001
From: gxosty <[EMAIL REDACTED]>
Date: Tue, 17 Dec 2024 21:07:37 +0500
Subject: [PATCH] Fixed default arguments not being passed properly

(cherry picked from commit ed5ca0e09ddc2b77f05498023262d622ea678946)
---
 external/Get-GitModules.ps1 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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*(?<path>.*)"
 [String] $URLRegex    = "url\s*=\s*(?<url>.*)" 
 [String] $BranchRegex = "branch\s*=\s*(?<Branch>.*)"
-[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) {