Merge commit '8d6a4d7'

This commit is contained in:
Jeremy Soller
2017-05-10 21:38:17 -06:00
3 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -190,7 +190,9 @@ pub fn install(config: Config, cookbook: Option<&str>) -> Result<(), String> {
passwd.push_str(&format!("{};{};{};{};{};{};{}\n", username, password, uid, gid, name, home, shell));
}
file!("etc/passwd", passwd.as_bytes());
if ! passwd.is_empty() {
file!("etc/passwd", passwd.as_bytes());
}
Ok(())
}