mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
Install Date: Use a separate case for MacOS ls
This commit is contained in:
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
|
||||
|
||||
|
Reference in New Issue
Block a user