一键安装命令 URL 地址使用双引号包裹

This commit is contained in:
dushixiang committed 2026-01-17 19:35:56 +08:00
1 parent cb948eaee3
commit bda3be6902
1 file changed
+1 -1
@@ -34,7 +34,7 @@ const AgentInstallOneClick = () => {
}
const trimmedName = customAgentName.trim();
const nameParam = trimmedName ? `&name=${encodeURIComponent(trimmedName)}` : '';
return `curl -fsSL ${backendServerUrl}/api/agent/install.sh?token=${selectedApiKey}${nameParam} | sudo bash`;
return `curl -fsSL "${backendServerUrl}/api/agent/install.sh?token=${selectedApiKey}${nameParam}" | sudo bash`;
}, [backendServerUrl, selectedApiKey, customAgentName]);
const copyToClipboard = (text: string) => {