From 52605060d16a2b6e038fd35399a14a36887c39e6 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 6 Mar 2016 10:01:57 +1100 Subject: [PATCH] Shorten if statement --- neofetch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index ad91dbc1..6ba753f1 100755 --- a/neofetch +++ b/neofetch @@ -1564,10 +1564,8 @@ getbirthday () { birthday=${birthday%:*} # Pretty output - if [ "$birthday_shorthand" == "off" ]; then - birthday="$date_cmd" - birthday=${birthday/ / } - fi + [ "$birthday_shorthand" == "off" ] && \ + birthday="${date_cmd/ / }" # Toggle showing the time [ "$birthday_time" == "off" ] && \