Commit 52605060 authored by Dylan's avatar Dylan

Shorten if statement

parent 2787c1b6
......@@ -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" ] && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment