From f6c362f5a16b92cb64be2c4cdfa02d49078c0ce3 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 15 Oct 2017 07:21:40 +0700 Subject: [PATCH] Install Date: Use a separate case for MacOS ls --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 77d2ecde..5a3ac83e 100755 --- a/neofetch +++ b/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