Respect update prebuilt override
ci / test (push) Has been cancelled
ci / fuzz-smoke (push) Has been cancelled
ci / windows-client (push) Has been cancelled
ci / package-release (linux-x86_64, ubuntu-latest) (push) Has been cancelled
ci / package-release (macos-aarch64, macos-14) (push) Has been cancelled
ci / package-release (macos-x86_64, macos-13) (push) Has been cancelled
ci / package-release (windows-x86_64, windows-latest) (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
DuProcess
2026-06-27 11:48:06 -04:00
parent 9d0396dbf9
commit 606fad72e3
+4 -2
View File
@@ -1561,12 +1561,14 @@ fn run_update(config: &dosh::config::ClientConfig, check_only: bool) -> Result<(
.unwrap_or_else(|| expand_tilde("~/.cache")) .unwrap_or_else(|| expand_tilde("~/.cache"))
.join("dosh") .join("dosh")
.join("source"); .join("source");
let use_prebuilt = std::env::var("DOSH_USE_PREBUILT").unwrap_or_else(|_| "1".to_string());
let mut script = format!( let mut script = format!(
"curl -fsSL {} | DOSH_REPO={} DOSH_PORT={} DOSH_UPDATE_CACHE={} DOSH_UPDATE_QUIET=1 DOSH_USE_PREBUILT=1 sh -s -- client", "curl -fsSL {} | DOSH_REPO={} DOSH_PORT={} DOSH_UPDATE_CACHE={} DOSH_UPDATE_QUIET=1 DOSH_USE_PREBUILT={} sh -s -- client",
shell_word(&installer), shell_word(&installer),
shell_word(&repo), shell_word(&repo),
config.update_port.unwrap_or(config.dosh_port), config.update_port.unwrap_or(config.dosh_port),
shell_word(&update_cache.display().to_string()) shell_word(&update_cache.display().to_string()),
shell_word(&use_prebuilt)
); );
if config.server != "user@example.com" { if config.server != "user@example.com" {
script.push_str(&format!(" --server {}", shell_word(&config.server))); script.push_str(&format!(" --server {}", shell_word(&config.server)));