From 952f2e5b2256a4535c43bebccef099dc91a3c0db Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Fri, 13 Oct 2017 14:24:56 +1100 Subject: [PATCH 1/6] fix Install Date for macOS --- neofetch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0ce2959d..2614c123 100755 --- a/neofetch +++ b/neofetch @@ -2254,7 +2254,13 @@ get_install_date() { return ;; - *) install_date="$(ls -dlctT "$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 + ;; esac install_date="${install_date//-/ }" From 3cac29c804d763352db07e37a996e474d2719240 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Fri, 13 Oct 2017 14:32:58 +1100 Subject: [PATCH 2/6] Change -u to -U in macOS install date --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 2614c123..f578ba7c 100755 --- a/neofetch +++ b/neofetch @@ -2256,7 +2256,7 @@ get_install_date() { *) if [[ "$os" == "Mac OS X" ]]; then - install_date="$(ls -dlctuT "$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 From 123d1652ff0549505acb1f30abbc7d37b7ccb3f1 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Fri, 13 Oct 2017 14:44:22 +1100 Subject: [PATCH 3/6] fix line length to be under 100 chars in macOS install date --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f578ba7c..2636d8ed 100755 --- a/neofetch +++ b/neofetch @@ -2256,7 +2256,7 @@ get_install_date() { *) if [[ "$os" == "Mac OS X" ]]; then - install_date="$(ls -dlctUT "$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 From 75148f63eeb6ec1f8d0c902d8c26d9f9901c0911 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Fri, 13 Oct 2017 15:08:28 +1100 Subject: [PATCH 4/6] docs: CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd81736..332793ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ ## Contributors [**@yslgirl**](https://github.com/yslgirl) +[**@iandrewt**](https://github.com/iandrewt) ## OS - Fixed detection bug with Gentoo. - Added support for macOS High Sierra. [**@yslgirl**](https://github.com/yslgirl) +- Fixed Install Date bug with macOS. [**@iandrewt**](https://github.com/iandrewt) From f6c362f5a16b92cb64be2c4cdfa02d49078c0ce3 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 15 Oct 2017 07:21:40 +0700 Subject: [PATCH 5/6] 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 From 51ff3d1c8853c58cfc4c56b9f155c68245c0d421 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 15 Oct 2017 07:26:27 +0700 Subject: [PATCH 6/6] docs: CHANGELOG --- CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 332793ca..31a6495b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ ## Contributors -[**@yslgirl**](https://github.com/yslgirl) -[**@iandrewt**](https://github.com/iandrewt) +- [**@yslgirl**](https://github.com/yslgirl) +- [**@iandrewt**](https://github.com/iandrewt) +- [**@chrisweeksnz**](https://github.com/chrisweeksnz) ## OS @@ -9,3 +10,4 @@ - Fixed detection bug with Gentoo. - Added support for macOS High Sierra. [**@yslgirl**](https://github.com/yslgirl) - Fixed Install Date bug with macOS. [**@iandrewt**](https://github.com/iandrewt) +- Added support for Container Linux by CoreOS. [**@chrisweeksnz**](https://github.com/chrisweeksnz)