Shorten if statement

This commit is contained in:
Dylan 2016-03-06 10:01:57 +11:00
parent 2787c1b68c
commit 52605060d1
1 changed files with 2 additions and 4 deletions

View File

@ -1564,10 +1564,8 @@ getbirthday () {
birthday=${birthday%:*} birthday=${birthday%:*}
# Pretty output # Pretty output
if [ "$birthday_shorthand" == "off" ]; then [ "$birthday_shorthand" == "off" ] && \
birthday="$date_cmd" birthday="${date_cmd/ / }"
birthday=${birthday/ / }
fi
# Toggle showing the time # Toggle showing the time
[ "$birthday_time" == "off" ] && \ [ "$birthday_time" == "off" ] && \