Pass -y to flatpak

This commit is contained in:
Roey Darwish Dror
2018-08-22 10:44:27 +03:00
parent 056a49bc50
commit 8ae5065167

View File

@@ -140,7 +140,7 @@ pub fn run_fwupdmgr(fwupdmgr: &PathBuf) -> Result<(), failure::Error> {
}
pub fn run_flatpak(flatpak: &PathBuf) -> Result<(), failure::Error> {
Command::new(&flatpak).arg("update").spawn()?.wait()?.check()?;
Command::new(&flatpak).args(&["update", "-y"]).spawn()?.wait()?.check()?;
Ok(())
}