From c03aad9066a006b4700f93895c17769eb2e0d92f Mon Sep 17 00:00:00 2001 From: nvtien Date: Mon, 16 Feb 2026 14:06:29 +0900 Subject: [PATCH] Fix: replace ?? operator with compatible if/else for older PowerShell --- install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index de3c7e4..99187c5 100644 --- a/install.ps1 +++ b/install.ps1 @@ -36,7 +36,8 @@ if (Test-Path $SourcesFile) { $TmpDir = Join-Path $env:TEMP "ag-sync-$($Source.name)" if (Test-Path $TmpDir) { Remove-Item -Recurse -Force $TmpDir } git clone --depth 1 $Source.url $TmpDir 2>$null - $SrcPath = Join-Path $TmpDir ($Source.path ?? "skills") + $SkillPath = if ($Source.path) { $Source.path } else { "skills" } + $SrcPath = Join-Path $TmpDir $SkillPath if (Test-Path $SrcPath) { Get-ChildItem -Path $SrcPath -Directory | ForEach-Object { Copy-Item -Path $_.FullName -Destination (Join-Path $Dest $_.Name) -Recurse -Force