mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Fix installer: use if-not fallbacks so iex piping works (param defaults don't apply via iex)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,11 +10,16 @@
|
||||
# irm https://jarvis.orbishosting.com/agent/install-windows.ps1 | iex
|
||||
|
||||
param(
|
||||
[string]$JarvisUrl = "https://jarvis.orbishosting.com",
|
||||
[string]$Key = "f846a9aaf7ce9a61742c63c87c4186052a71d2a580c65518",
|
||||
[string]$AgentName = $env:COMPUTERNAME.ToLower()
|
||||
[string]$JarvisUrl = "",
|
||||
[string]$Key = "",
|
||||
[string]$AgentName = ""
|
||||
)
|
||||
|
||||
# param() defaults don't apply when piped through iex — set here as fallback
|
||||
if (-not $JarvisUrl) { $JarvisUrl = "https://jarvis.orbishosting.com" }
|
||||
if (-not $Key) { $Key = "f846a9aaf7ce9a61742c63c87c4186052a71d2a580c65518" }
|
||||
if (-not $AgentName) { $AgentName = $env:COMPUTERNAME.ToLower() }
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$InstallDir = "C:\ProgramData\jarvis-agent"
|
||||
$AgentScript = "$InstallDir\jarvis-agent-windows.py"
|
||||
|
||||
Reference in New Issue
Block a user