OpenBSD: Disable pretty birthday output as 'date' doesn't have any of the flags we need
This commit is contained in:
parent
09a3846738
commit
404a25a063
2 changed files with 4 additions and 2 deletions
|
@ -114,6 +114,7 @@ gtk3="on"
|
|||
|
||||
# Whether to show a long pretty output
|
||||
# or a shortened one
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD.
|
||||
# --birthday_shorthand on/off
|
||||
birthday_shorthand="off"
|
||||
|
||||
|
|
5
fetch
5
fetch
|
@ -134,6 +134,7 @@ gtk3="on"
|
|||
|
||||
# Whether to show a long pretty output
|
||||
# or a shortened one
|
||||
# NOTE: Long pretty output doesn't work on OpenBSD.
|
||||
# --birthday_shorthand on/off
|
||||
birthday_shorthand="off"
|
||||
|
||||
|
@ -1205,18 +1206,18 @@ getbirthday () {
|
|||
case "$distro" in
|
||||
"OpenBSD")
|
||||
birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')"
|
||||
birthday_shorthand="on"
|
||||
;;
|
||||
|
||||
"FreeBSD")
|
||||
birthday="$(ls -alctT /etc/hostid | awk '{printf $6 " " $7 " " $9 " " $8}')"
|
||||
date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||
;;
|
||||
|
||||
*)
|
||||
birthday="Unknown"
|
||||
;;
|
||||
esac
|
||||
|
||||
date_cmd="$(date -j -f "%b %d %Y" "$birthday" "+%a %d %b %Y %l:%M %p")"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue