fix typo in sha256sum path

This commit is contained in:
Bruce Leidl 2019-08-16 19:34:33 -04:00
parent f02a9ab4c5
commit 79a52b7a46

View File

@ -60,7 +60,7 @@ pub fn ensure_command_exists(cmd: &str) -> Result<()> {
pub fn sha256<P: AsRef<Path>>(path: P) -> Result<String> { pub fn sha256<P: AsRef<Path>>(path: P) -> Result<String> {
let path = path.as_ref(); let path = path.as_ref();
let output = cmd_with_output!("/usr/bin/256sum", "{}", path.display()) let output = cmd_with_output!("/usr/bin/sha256sum", "{}", path.display())
.context(format!("failed to calculate sha256 on {}", path.display()))?; .context(format!("failed to calculate sha256 on {}", path.display()))?;
let v: Vec<&str> = output.split_whitespace().collect(); let v: Vec<&str> = output.split_whitespace().collect();