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;
}