fix: Replaced multi-argument Join-Path with [System.IO.Path]::Combine for PS 5.1 compatibility.
This commit is contained in:
+3
-3
@@ -579,7 +579,7 @@ Write-Step -Number "6" -Text "Step 6: Initializing credential store..."
|
||||
Write-Color -Text "The credential store encrypts API keys and secrets for your agents." -Color DarkGray
|
||||
Write-Host ""
|
||||
|
||||
$HiveCredDir = Join-Path $env:USERPROFILE ".hive" "credentials"
|
||||
$HiveCredDir = [System.IO.Path]::Combine($env:USERPROFILE, ".hive", "credentials")
|
||||
|
||||
# Check if HIVE_CREDENTIAL_KEY is already set
|
||||
$credKey = [System.Environment]::GetEnvironmentVariable("HIVE_CREDENTIAL_KEY", "User")
|
||||
@@ -658,7 +658,7 @@ Write-Host " $([char]0x2B21) MCP config... " -NoNewline
|
||||
if (Test-Path (Join-Path $ScriptDir ".mcp.json")) { Write-Ok "ok" } else { Write-Warn "skipped" }
|
||||
|
||||
Write-Host " $([char]0x2B21) skills... " -NoNewline
|
||||
$skillsDir = Join-Path $ScriptDir ".claude" "skills"
|
||||
$skillsDir = [System.IO.Path]::Combine($ScriptDir, ".claude", "skills")
|
||||
if (Test-Path $skillsDir) {
|
||||
$skillCount = (Get-ChildItem -Directory $skillsDir -ErrorAction SilentlyContinue).Count
|
||||
Write-Ok "$skillCount found"
|
||||
@@ -667,7 +667,7 @@ if (Test-Path $skillsDir) {
|
||||
}
|
||||
|
||||
Write-Host " $([char]0x2B21) credential store... " -NoNewline
|
||||
$credStoreDir = Join-Path $env:USERPROFILE ".hive" "credentials" "credentials"
|
||||
$credStoreDir = [System.IO.Path]::Combine($env:USERPROFILE, ".hive", "credentials", "credentials")
|
||||
if ($credKey -and (Test-Path $credStoreDir)) { Write-Ok "ok" } else { Write-Warn "skipped" }
|
||||
|
||||
Write-Host ""
|
||||
|
||||
Reference in New Issue
Block a user