bugfix: Let Mac users specify encryption directly (#546)
This commit is contained in:
parent
3586457624
commit
9c915b3f6a
|
@ -108,7 +108,9 @@ impl Planner for Macos {
|
|||
},
|
||||
};
|
||||
|
||||
let encrypt = if self.encrypt == None {
|
||||
let encrypt = match self.encrypt {
|
||||
Some(choice) => choice,
|
||||
None => {
|
||||
let output = Command::new("/usr/bin/fdesetup")
|
||||
.arg("isactive")
|
||||
.stdout(std::process::Stdio::null())
|
||||
|
@ -125,8 +127,7 @@ impl Planner for Macos {
|
|||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
},
|
||||
};
|
||||
|
||||
Ok(vec![
|
||||
|
|
Loading…
Reference in a new issue