Skip to content

Commit 8f172c7

Browse files
author
openclaw-installer-sync[bot]
committed
chore: sync installers from openclaw aef93881af5f
1 parent e1a40f2 commit 8f172c7

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

public/install.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,20 @@ function Invoke-OpenClawCommand {
354354
& $commandPath @Arguments
355355
}
356356

357+
function Invoke-InteractiveOpenClawCommand {
358+
param(
359+
[Parameter(ValueFromRemainingArguments = $true)]
360+
[string[]]$Arguments
361+
)
362+
363+
$commandPath = Get-OpenClawCommandPath
364+
if (-not $commandPath) {
365+
throw "openclaw command not found on PATH."
366+
}
367+
368+
$null = Start-Process -FilePath $commandPath -ArgumentList $Arguments -NoNewWindow -Wait -PassThru
369+
}
370+
357371
function Resolve-CommandPath {
358372
param(
359373
[Parameter(Mandatory = $true)]
@@ -875,7 +889,7 @@ function Main {
875889
} else {
876890
Write-Host "Starting setup..." -ForegroundColor Cyan
877891
Write-Host ""
878-
Invoke-OpenClawCommand onboard
892+
Invoke-InteractiveOpenClawCommand onboard
879893
}
880894
}
881895

0 commit comments

Comments
 (0)