fix Install Date for macOS

This commit is contained in:
Andrew Titmuss 2017-10-13 14:24:56 +11:00
parent fd04aa14ae
commit 952f2e5b22
No known key found for this signature in database
GPG Key ID: 8AF42975C787E0B2
1 changed files with 7 additions and 1 deletions

View File

@ -2254,7 +2254,13 @@ get_install_date() {
return 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 esac
install_date="${install_date//-/ }" install_date="${install_date//-/ }"