Birthday: Fix macOS birthday command

This commit is contained in:
Dylan Araps 2016-12-16 13:33:50 +11:00
parent 89f7c2210d
commit bfdca24bbd
1 changed files with 5 additions and 5 deletions

View File

@ -1732,12 +1732,12 @@ get_birthday() {
birthday="$(ls -alct --full-time / | awk '/lost\+found|private/ {printf $6 " " $7}')"
;;
"BSD" | "Mac OS X")
case "$kernel_name" in
"Darwin")
birthday_file="/var/log/install.log"
;;
"Mac OS X")
birthday="$(ls -lUT /var/log/install.log | awk '{printf $9 " " $6 " " $7 " " $8}')"
;;
"BSD")
case "$kernel_name" in
"OpenBSD"* | "Bitrig"*)
birthday_file="/"
;;