aboutsummaryrefslogtreecommitdiff
path: root/src/update.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/update.rs')
-rw-r--r--src/update.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/update.rs b/src/update.rs
index 8ef77840..eac917bf 100644
--- a/src/update.rs
+++ b/src/update.rs
@@ -294,7 +294,7 @@ fn fetch_json_manifest<T>(url: &str) -> Result<T, String>
where
T: serde::de::DeserializeOwned,
{
- let output = Command::new("curl")
+ let output = crate::noninteractive_process::curl_command()
.args([
"-sfL",
"--retry",
@@ -508,7 +508,7 @@ fn homebrew_update_from_formula_json(
fn check_homebrew_latest() -> Result<Option<Version>, String> {
let current = Version::current();
- let output = Command::new("curl")
+ let output = crate::noninteractive_process::curl_command()
.args([
"-sfL",
"--retry",
@@ -571,7 +571,7 @@ fn download_update(release: &ReleaseInfo) -> Result<DownloadedUpdate, String> {
let tmp_path = parent.join(format!(".herdr-update-{}.tmp", std::process::id()));
// Download the exact asset URL (pinned to the release we checked)
- let status = Command::new("curl")
+ let status = crate::noninteractive_process::curl_command()
.args(["-sfL", "--max-time", "120", "-o"])
.arg(&tmp_path)
.arg(&release.download_url)