Commit 3941971e authored by Andrew Titmuss's avatar Andrew Titmuss Committed by GitHub

Merge pull request #840 from dylanaraps/install-date-mac

Fix Install Date for macOS
parents b57cdee0 123d1652
......@@ -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//-/ }"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment