Install Date: Use a separate case for MacOS ls
This commit is contained in:
parent
75148f63ee
commit
f6c362f5a1
1 changed files with 5 additions and 5 deletions
8
neofetch
8
neofetch
|
@ -2254,12 +2254,12 @@ get_install_date() {
|
|||
return
|
||||
;;
|
||||
|
||||
*)
|
||||
if [[ "$os" == "Mac OS X" ]]; then
|
||||
*"HLOPRSTUWabc"*) # macOS ls
|
||||
install_date="$(ls -dlctUT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')"
|
||||
else
|
||||
;;
|
||||
|
||||
*)
|
||||
install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue