mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +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
|
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 -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
|
||||||
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
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user