diff --git a/src/bin/dosh-client.rs b/src/bin/dosh-client.rs index e13b27f..1da07df 100644 --- a/src/bin/dosh-client.rs +++ b/src/bin/dosh-client.rs @@ -1561,12 +1561,14 @@ fn run_update(config: &dosh::config::ClientConfig, check_only: bool) -> Result<( .unwrap_or_else(|| expand_tilde("~/.cache")) .join("dosh") .join("source"); + let use_prebuilt = std::env::var("DOSH_USE_PREBUILT").unwrap_or_else(|_| "1".to_string()); 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(&repo), 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" { script.push_str(&format!(" --server {}", shell_word(&config.server)));