Birthday: Fix macOS birthday command
This commit is contained in:
parent
89f7c2210d
commit
bfdca24bbd
8
neofetch
8
neofetch
|
@ -1732,12 +1732,12 @@ get_birthday() {
|
||||||
birthday="$(ls -alct --full-time / | awk '/lost\+found|private/ {printf $6 " " $7}')"
|
birthday="$(ls -alct --full-time / | awk '/lost\+found|private/ {printf $6 " " $7}')"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"BSD" | "Mac OS X")
|
"Mac OS X")
|
||||||
case "$kernel_name" in
|
birthday="$(ls -lUT /var/log/install.log | awk '{printf $9 " " $6 " " $7 " " $8}')"
|
||||||
"Darwin")
|
|
||||||
birthday_file="/var/log/install.log"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"BSD")
|
||||||
|
case "$kernel_name" in
|
||||||
"OpenBSD"* | "Bitrig"*)
|
"OpenBSD"* | "Bitrig"*)
|
||||||
birthday_file="/"
|
birthday_file="/"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue