Program can now run without figlet
This commit is contained in:
parent
0720723e09
commit
1ca0fb7327
1 changed files with 5 additions and 3 deletions
|
@ -46,9 +46,11 @@ fn main() {
|
||||||
.args(["-f", "smslant", &distro_name.clone()])
|
.args(["-f", "smslant", &distro_name.clone()])
|
||||||
.output();
|
.output();
|
||||||
|
|
||||||
|
if figlet.is_err() == false {
|
||||||
let figlet = figlet.unwrap();
|
let figlet = figlet.unwrap();
|
||||||
let figlet = String::from_utf8_lossy(&figlet.stdout);
|
let figlet = String::from_utf8_lossy(&figlet.stdout);
|
||||||
|
print!("{}", figlet);
|
||||||
|
}
|
||||||
// Print all the things we've been saving.
|
// Print all the things we've been saving.
|
||||||
print!("{}", figlet);
|
print!("{}", figlet);
|
||||||
println!("{}@{}", user.clone().trim(), hostname.clone().trim());
|
println!("{}@{}", user.clone().trim(), hostname.clone().trim());
|
||||||
|
|
Loading…
Reference in a new issue