This commit is contained in:
dylan araps 2017-10-16 07:42:46 +11:00
commit 03d07f2c62
2 changed files with 12 additions and 2 deletions

View file

@ -2254,7 +2254,13 @@ get_install_date() {
return
;;
*) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;;
*"HLOPRSTUWabc"*) # macOS ls
install_date="$(ls -dlctUT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')"
;;
*)
install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
;;
esac
install_date="${install_date//-/ }"