From 0c8b10af995e3ba4843d2532a2ba35ebc21bf000 Mon Sep 17 00:00:00 2001 From: henrygd Date: Mon, 28 Apr 2025 20:37:25 -0400 Subject: [PATCH] Escape backslashes in windows agent install command (#785) --- beszel/site/src/components/add-system.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beszel/site/src/components/add-system.tsx b/beszel/site/src/components/add-system.tsx index f7effe3..670377a 100644 --- a/beszel/site/src/components/add-system.tsx +++ b/beszel/site/src/components/add-system.tsx @@ -86,7 +86,7 @@ function copyLinuxCommand(port = "45876", publicKey: string, brew = false) { function copyWindowsCommand(port = "45876", publicKey: string) { copyToClipboard( - `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser; & iwr -useb https://get.beszel.dev -OutFile "$env:TEMP\install-agent.ps1"; & "$env:TEMP\install-agent.ps1" -Key "${publicKey}" -Port ${port}` + `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser; & iwr -useb https://get.beszel.dev -OutFile "$env:TEMP\\install-agent.ps1"; & "$env:TEMP\\install-agent.ps1" -Key "${publicKey}" -Port ${port}` ) }