prebuilts/sys/linux.rs
1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use std::path::Path;
6use std::process::Command;
7
8pub(crate) fn download_command(url: &str, destination: &Path) -> Command {
9 let mut cmd = Command::new("curl");
10 cmd.arg("--fail")
11 .arg("--location")
12 .arg("--silent")
13 .args(["--output", destination.to_str().unwrap()])
14 .arg(url);
15 cmd
16}