Shorten if statement
This commit is contained in:
parent
2787c1b68c
commit
52605060d1
1 changed files with 2 additions and 4 deletions
6
neofetch
6
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" ] && \
|
||||
|
|
Loading…
Reference in a new issue