Test if there are users before printing them.

This commit is contained in:
KokaKiwi 2014-01-16 03:00:32 +01:00
parent d20d119416
commit 80d9af42aa

View file

@ -139,6 +139,8 @@ fn exec(filename: &str) {
endutent();
}
if users.len() > 0 {
users.sort();
println!("{}", users.connect(" "));
}
}