From 708beb1716c9a08ea0706d2341b0dc63f8146bd5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 11:27:53 +1100 Subject: [PATCH] Birthday: Remove macOS substitutions --- neofetch | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/neofetch b/neofetch index 2e33d4b6..2d6745aa 100755 --- a/neofetch +++ b/neofetch @@ -1734,24 +1734,12 @@ get_birthday() { "Mac OS X") 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") case "$kernel_name" in "OpenBSD"* | "Bitrig"*) birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')" - birthday_shorthand="on" ;; "FreeBSD"*) @@ -1760,7 +1748,6 @@ get_birthday() { "NetBSD"* | "DragonFly"*) birthday="$(ls -alctT /etc/defaults/rc.conf | awk '{printf $6 " " $7 " " $9 " " $8}')" - birthday_shorthand="on" ;; esac ;;