From 482041cac3463004d380476ce99468663d8e8d74 Mon Sep 17 00:00:00 2001 From: zyb Date: Wed, 24 Sep 2025 13:50:40 +0800 Subject: [PATCH] modified: index.html --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 498726e..d7aa12c 100644 --- a/index.html +++ b/index.html @@ -762,10 +762,10 @@ // Update command display based on selected tool and version function updateCommand(version) { const tool = document.querySelector('input[name="tool"]:checked').value; - const proxy = localStorage.getItem("gh-proxy-enabled") === "true" ? " | sed 's#https://github.com#https://gh-proxy.com/https://github.com#g'" : ""; + const proxy = localStorage.getItem("gh-proxy-enabled") === "true" ? " | sed 's#https://github.com#https://gh-proxy.com/https://github.com#g'" : ""; const cmd = tool === "curl" - ? `
curl https://mikrotik.ltd/chr.sh${proxy} | bash -s ${version}
` - : `
wget -O - https://mikrotik.ltd/chr.sh${proxy} | bash -s ${version}
`; + ? `
VERSION=${version} bash \<(curl https://mikrotik.ltd/chr.sh${proxy})
` + : `
VERSION=${version} bash \<(wget -O - https://mikrotik.ltd/chr.sh${proxy})
`; commandDiv.innerHTML = cmd; }