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
10
neofetch
10
neofetch
|
@ -2254,12 +2254,12 @@ get_install_date() {
|
|||
return
|
||||
;;
|
||||
|
||||
*"HLOPRSTUWabc"*) # macOS ls
|
||||
install_date="$(ls -dlctUT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')"
|
||||
;;
|
||||
|
||||
*)
|
||||
if [[ "$os" == "Mac OS X" ]]; then
|
||||
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
|
||||
install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue