Commit f6c362f5 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Install Date: Use a separate case for MacOS ls

parent 75148f63
......@@ -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
......
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