Fixup fdesetup isactive outputting when it should not (#163)

This commit is contained in:
Ana Hobden 2023-01-09 09:24:24 -08:00 committed by GitHub
parent e9e29aacb1
commit 232789ed1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,9 @@ impl Planner for DarwinMulti {
let encrypt = if self.encrypt == None { let encrypt = if self.encrypt == None {
Command::new("/usr/bin/fdesetup") Command::new("/usr/bin/fdesetup")
.arg("isactive") .arg("isactive")
.stdout(std::process::Stdio::null())
.stderr(std::process::Stdio::null())
.process_group(0)
.status() .status()
.await .await
.map_err(|e| PlannerError::Custom(Box::new(e)))? .map_err(|e| PlannerError::Custom(Box::new(e)))?