TUI: Ensure that identity file data is written

This commit is contained in:
Jack Grigg
2021-05-02 09:24:16 +12:00
parent ba3ccda8ce
commit 9276725a9a
+1
View File
@@ -550,6 +550,7 @@ fn main() -> Result<(), Error> {
writeln!(file, "{}", metadata)?;
writeln!(file, "# Recipient: {}", recipient)?;
writeln!(file, "{}", stub.to_string())?;
file.sync_data()?;
// If `rage` binary is installed, use it in examples. Otherwise default to `age`.
let age_binary = which::which("rage").map(|_| "rage").unwrap_or("age");