Shorten if statement

This commit is contained in:
Dylan 2016-03-06 10:01:57 +11:00
parent 2787c1b68c
commit 52605060d1

View file

@ -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" ] && \