aboutsummaryrefslogtreecommitdiff
path: root/src/update.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-16 21:23:53 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-16 21:23:53 +0300
commit616d1dd8125ece4a9102b231864cb4fc4b761497 (patch)
tree24647750130d05dcf4a0a262a1976b6bdd0fcee8 /src/update.rs
parent76a4e3ccb0958ff54badfa65ba4d224d6b0c29a1 (diff)
fix(windows): suppress noninteractive process windows
refs #1468
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)