Commit 708beb17 authored by Dylan Araps's avatar Dylan Araps

Birthday: Remove macOS substitutions

parent 6698463d
...@@ -1734,24 +1734,12 @@ get_birthday() { ...@@ -1734,24 +1734,12 @@ get_birthday() {
"Mac OS X") "Mac OS X")
birthday="$(ls -lUT /var/log/install.log | awk '{printf $6 " " $7 " " $9 " " $8}')" birthday="$(ls -lUT /var/log/install.log | awk '{printf $6 " " $7 " " $9 " " $8}')"
# Split the string into Date + time
time="${birthday/*???? }"
birthday="${birthday/$time}"
case "${time/:*}" in
0? | 10 | 11) time+=" AM" ;;
*) time+=" PM" ;;
esac
birthday+="$time"
birthday_shorthand="on"
;; ;;
"BSD") "BSD")
case "$kernel_name" in case "$kernel_name" in
"OpenBSD"* | "Bitrig"*) "OpenBSD"* | "Bitrig"*)
birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')" birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')"
birthday_shorthand="on"
;; ;;
"FreeBSD"*) "FreeBSD"*)
...@@ -1760,7 +1748,6 @@ get_birthday() { ...@@ -1760,7 +1748,6 @@ get_birthday() {
"NetBSD"* | "DragonFly"*) "NetBSD"* | "DragonFly"*)
birthday="$(ls -alctT /etc/defaults/rc.conf | awk '{printf $6 " " $7 " " $9 " " $8}')" birthday="$(ls -alctT /etc/defaults/rc.conf | awk '{printf $6 " " $7 " " $9 " " $8}')"
birthday_shorthand="on"
;; ;;
esac esac
;; ;;
......
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